mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-03-29 03:29:13 +00:00
fix: build errors from da08fe24
not sure i like loading the header like that but whatever
This commit is contained in:
parent
da08fe24f4
commit
026ee50b9f
1 changed files with 6 additions and 3 deletions
|
|
@ -12,6 +12,7 @@ import Header from "@/components/header";
|
||||||
import Footer from "@/components/footer";
|
import Footer from "@/components/footer";
|
||||||
import AdminBanner from "@/components/admin/banner";
|
import AdminBanner from "@/components/admin/banner";
|
||||||
import { SessionProvider } from "next-auth/react";
|
import { SessionProvider } from "next-auth/react";
|
||||||
|
import { Suspense } from "react";
|
||||||
|
|
||||||
const lexend = Lexend({
|
const lexend = Lexend({
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
|
|
@ -92,9 +93,11 @@ export default function RootLayout({
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Providers>
|
<Providers>
|
||||||
|
<Suspense fallback={<div>Loading header...</div>}>
|
||||||
<SessionProvider>
|
<SessionProvider>
|
||||||
<Header />
|
<Header />
|
||||||
</SessionProvider>
|
</SessionProvider>
|
||||||
|
</Suspense>
|
||||||
<AdminBanner />
|
<AdminBanner />
|
||||||
<main className="px-4 py-8 max-w-7xl w-full grow flex flex-col">{children}</main>
|
<main className="px-4 py-8 max-w-7xl w-full grow flex flex-col">{children}</main>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue