Skip to content
Discussion options

You must be logged in to vote

I was not wrapping correctly in the layout the {children}
Here is how the correct code looks

 return (
    <html lang="en" suppressHydrationWarning>
      <body
        className={cn(
          "min-h-screen bg-background font-sans antialiased",
          fontSans.variable
        )}
      >
        <ThemeProvider
          attribute="class"
          defaultTheme="system"
          enableSystem
          disableTransitionOnChange
        >
          
          <ClientLayout isLoggedIn={isLoggedIn}></ClientLayout>
          {children}
        </ThemeProvider>


      </body>
    </html>
  );

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vladimirzb
Comment options

@vladimirzb
Comment options

@vladimirzb
Comment options

Answer selected by vladimirzb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants