mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-24 09:34:28 +03:00
Updated Wasp AI to work for Wasp 0.15.
This commit is contained in:
parent
1e1545f88c
commit
8923da0239
@ -147,6 +147,7 @@ generatePackageJson newProjectDetails =
|
||||
[trimming|
|
||||
{
|
||||
"name": "${appName}",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"wasp": "file:.wasp/out/sdk/wasp",
|
||||
"react": "^18.2.0"
|
||||
@ -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 (
|
||||
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user