This commit is contained in:
2025-03-20 18:06:22 +08:00
parent 9ad083b014
commit a2ef989b75
4 changed files with 71 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { StoreProvider } from "../stores/storeContext";
import { getInitialState } from "@/ lib/client/storage";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -22,12 +24,16 @@ export default function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
const initialState = getInitialState();
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<StoreProvider initialData={initialState}>
{children}
</StoreProvider>
</body>
</html>
);