Fix SessionProvider

This commit is contained in:
Lee 2022-11-19 11:06:31 +00:00
parent d26ab0043c
commit f50d752770
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

@ -13,20 +13,20 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }) {
const shouldReturnMetadata = router.pathname !== "/files/[fileId]";
return (
<NextUIProvider theme={darkTheme}>
<NextSeo
titleTemplate="%s | Imageify"
themeColor="#0063EB"
openGraph={shouldReturnMetadata ? baseOpenGraph : undefined}
/>
<Layout>
<SessionProvider session={session}>
<SessionProvider session={session}>
<NextUIProvider theme={darkTheme}>
<NextSeo
titleTemplate="%s | Imageify"
themeColor="#0063EB"
openGraph={shouldReturnMetadata ? baseOpenGraph : undefined}
/>
<Layout>
<NextUIProvider>
<Component {...pageProps} />
</NextUIProvider>
</SessionProvider>
</Layout>
</NextUIProvider>
</Layout>
</NextUIProvider>
</SessionProvider>
);
}