Skip to content

Commit

Permalink
enable theme controller
Browse files Browse the repository at this point in the history
  • Loading branch information
jewlexx committed Jan 8, 2025
1 parent 0238563 commit 1709581
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export default async function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
// const cookieStore = await cookies();
// const theme = cookieStore.get('theme')?.value ?? 'cupcake';
const cookieStore = await cookies();
const theme = cookieStore.get('theme')?.value ?? 'cupcake';

return (
<html lang="en" className="h-full w-full" data-theme="cupcake">
Expand All @@ -38,7 +38,7 @@ export default async function RootLayout({
className={`${roboto.className} ${robotoMono.className} box-border min-h-full w-full pb-12 text-lg antialiased`}
>
<Back />
{/* <ThemeController defaultTheme={theme} /> */}
<ThemeController defaultTheme={theme} />
{children}
</body>
</html>
Expand Down

0 comments on commit 1709581

Please sign in to comment.