Fix SessionProvider
This commit is contained in:
parent
d26ab0043c
commit
f50d752770
@ -13,20 +13,20 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }) {
|
|||||||
const shouldReturnMetadata = router.pathname !== "/files/[fileId]";
|
const shouldReturnMetadata = router.pathname !== "/files/[fileId]";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<NextUIProvider theme={darkTheme}>
|
<SessionProvider session={session}>
|
||||||
<NextSeo
|
<NextUIProvider theme={darkTheme}>
|
||||||
titleTemplate="%s | Imageify"
|
<NextSeo
|
||||||
themeColor="#0063EB"
|
titleTemplate="%s | Imageify"
|
||||||
openGraph={shouldReturnMetadata ? baseOpenGraph : undefined}
|
themeColor="#0063EB"
|
||||||
/>
|
openGraph={shouldReturnMetadata ? baseOpenGraph : undefined}
|
||||||
<Layout>
|
/>
|
||||||
<SessionProvider session={session}>
|
<Layout>
|
||||||
<NextUIProvider>
|
<NextUIProvider>
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
</NextUIProvider>
|
</NextUIProvider>
|
||||||
</SessionProvider>
|
</Layout>
|
||||||
</Layout>
|
</NextUIProvider>
|
||||||
</NextUIProvider>
|
</SessionProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user