nav component and session provider fix

This commit is contained in:
Timur Ercan
2023-01-11 18:31:30 +01:00
parent 782df4cc05
commit c1d4dfeaf6
3 changed files with 211 additions and 158 deletions

View File

@ -18,9 +18,9 @@ export default function App({
pageProps: { session, ...pageProps },
}: AppPropsWithLayout) {
const getLayout = Component.getLayout || ((page: any) => page);
return getLayout(
return (
<SessionProvider session={session}>
<Component {...pageProps} />{" "}
{getLayout(<Component {...pageProps} />)}
</SessionProvider>
);
}