|
|
@@ -1,6 +1,7 @@
|
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
|
import "./globals.css";
|
|
|
import { ThemeProvider } from "@/components/ui/theme-provider";
|
|
|
+import { Toaster } from "@/components/ui/sonner";
|
|
|
|
|
|
const geistSans = Geist({
|
|
|
variable: "--font-geist-sans",
|
|
|
@@ -24,19 +25,13 @@ export default function RootLayout({ children }) {
|
|
|
className={`${geistSans.variable} ${geistMono.variable} min-h-screen bg-background text-foreground antialiased`}
|
|
|
>
|
|
|
<ThemeProvider
|
|
|
- /*
|
|
|
- Theme setup (shadcn/ui + next-themes):
|
|
|
- - attribute="class" means themes are controlled via <html class="dark">
|
|
|
- - defaultTheme="system" respects the OS preference
|
|
|
- - enableSystem keeps system sync
|
|
|
- - disableTransitionOnChange avoids flicker/jumpy transitions
|
|
|
- */
|
|
|
attribute="class"
|
|
|
defaultTheme="system"
|
|
|
enableSystem
|
|
|
disableTransitionOnChange
|
|
|
>
|
|
|
{children}
|
|
|
+ <Toaster position="bottom-center" />
|
|
|
</ThemeProvider>
|
|
|
</body>
|
|
|
</html>
|