Skip to content

Commit

Permalink
Updated Wasp AI to work for Wasp 0.15.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martinsos committed Oct 10, 2024
1 parent 1e1545f commit 8923da0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions waspc/src/Wasp/AI/GenerateNewProject/InitialFiles.hs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ generatePackageJson newProjectDetails =
[trimming|
{
"name": "${appName}",
"type": "module",
"dependencies": {
"wasp": "file:.wasp/out/sdk/wasp",
"react": "^18.2.0"
Expand Down Expand Up @@ -273,9 +274,10 @@ generateLayoutComponent newProjectDetails =
[trimming|
import { Link } from "wasp/client/router";
import { useAuth, logout } from "wasp/client/auth";
import { Outlet } from "react-router-dom";
import "./Main.css";

export const Layout = ({ children }) => {
export const Layout = () => {
const { data: user } = useAuth();

return (
Expand All @@ -300,7 +302,7 @@ generateLayoutComponent newProjectDetails =
</div>
</header>
<main className="container mx-auto px-4 py-2 flex-grow">
{children}
<Outlet />
</main>
<footer>
<div className="container mx-auto p-4">
Expand Down

0 comments on commit 8923da0

Please sign in to comment.