mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(layout): add Sonner Toaster for toast notifications
This commit is contained in:
parent
18d9b28e1e
commit
5f49d6841e
@ -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";
|
||||||
@ -24,7 +25,8 @@ export default function RootLayout({ children }: RootLayoutProps) {
|
|||||||
disableTransitionOnChange
|
disableTransitionOnChange
|
||||||
>
|
>
|
||||||
<div className="w-full">{children}</div>
|
<div className="w-full">{children}</div>
|
||||||
<SettingsDialog/>
|
<SettingsDialog />
|
||||||
|
<Toaster />
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user