-
+
{
return (
<>
- {props.isAuthenticated
- ?
- : }
+
>)
}
RootPage.getInitialProps = async (ctx) => {
const session = await getSession(ctx.req, ctx.store)
- const page = session.isAuthenticated ? Home : Landing
+ const page = Home
if (page.getInitialProps) {
const pageProps = await page.getInitialProps(ctx)
return pageProps