feat(layout): add Sonner Toaster for toast notifications

This commit is contained in:
cfngc4594 2025-03-14 15:36:29 +08:00
parent 18d9b28e1e
commit 5f49d6841e

View File

@ -1,4 +1,5 @@
import "./globals.css"; import "@/app/globals.css";
import { Toaster } from "sonner";
import type { Metadata } from "next"; import type { Metadata } from "next";
import { ThemeProvider } from "@/components/theme-provider"; import { ThemeProvider } from "@/components/theme-provider";
import { SettingsDialog } from "@/components/settings-dialog"; import { SettingsDialog } from "@/components/settings-dialog";
@ -25,6 +26,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
> >
<div className="w-full">{children}</div> <div className="w-full">{children}</div>
<SettingsDialog /> <SettingsDialog />
<Toaster />
</ThemeProvider> </ThemeProvider>
</body> </body>
</html> </html>