Преглед на файлове

RHL-009 feat(ui): integrate Toaster component for improved notification handling

Code_Uwe преди 5 дни
родител
ревизия
7c886d9d4c
променени са 1 файла, в които са добавени 2 реда и са изтрити 7 реда
  1. 2 7
      app/layout.jsx

+ 2 - 7
app/layout.jsx

@@ -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>