Fixed theme

This commit is contained in:
2025-06-26 18:37:48 +02:00
parent 7390964d56
commit 8ab33d96f9
3 changed files with 71 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
import { ReactNode } from "react"
import "./globals.css"
import { Toaster } from "@/components/ui/sonner"
import { ThemeProvider } from "next-themes"
export default function RootLayout({
children
@@ -10,8 +11,10 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<body className="antialiased">
{children}
<Toaster />
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
{children}
<Toaster />
</ThemeProvider>
</body>
</html>
)