File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ import store from "@/lib/store";
7
7
import Head from "next/head" ;
8
8
import { SessionProvider } from "next-auth/react" ;
9
9
import Navbar from "@/components/navbar/Navbar" ;
10
+ import { ReactNode } from "react" ;
10
11
11
12
const inter = Inter ( { subsets : [ "latin" ] } ) ;
12
13
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 ) {
20
20
return (
21
21
< html lang = "en" >
22
22
< Head >
You can’t perform that action at this time.
0 commit comments