feat(layout): add Toaster component to RootLayout

This commit is contained in:
ngc2207 2025-02-03 12:07:11 +08:00
parent e102418c50
commit ca0512ff14

View File

@ -2,6 +2,7 @@ import "@/app/globals.css";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Inter } from "next/font/google"; import { Inter } from "next/font/google";
import { Toaster } from "@/components/ui/sonner";
import { QueryProvider } from "@/components/query-provider"; import { QueryProvider } from "@/components/query-provider";
import { ThemeProvider } from "@/components/theme-provider"; import { ThemeProvider } from "@/components/theme-provider";
@ -28,6 +29,7 @@ export default function RootLayout({ children }: Readonly<RootLayoutProps>) {
disableTransitionOnChange disableTransitionOnChange
> >
{children} {children}
<Toaster />
</ThemeProvider> </ThemeProvider>
</QueryProvider> </QueryProvider>
</body> </body>