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