Skip to content

Commit cb2485c

Browse files
authored
Merge pull request #17 from Iank-code/Development
feat: fix layout.tsx err
2 parents be3f0af + f71fbde commit cb2485c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/app/layout.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ import store from "@/lib/store";
77
import Head from "next/head";
88
import { SessionProvider } from "next-auth/react";
99
import Navbar from "@/components/navbar/Navbar";
10+
import { ReactNode } from "react";
1011

1112
const inter = Inter({ subsets: ["latin"] });
1213

13-
export default function RootLayout({
14-
children,
15-
session,
16-
}: Readonly<{
17-
children: React.ReactNode;
18-
session: any; // Add session type if known
19-
}>) {
14+
interface RootLayoutProps {
15+
children: ReactNode;
16+
session: any; // Add session type if known, or replace `any` with the correct type
17+
}
18+
19+
export default function RootLayout({ children, session }: RootLayoutProps) {
2020
return (
2121
<html lang="en">
2222
<Head>

0 commit comments

Comments
 (0)