refactor: migrate global toast notifications to Sonner and update admin UI navigation, layouts, and submission workflows
This commit is contained in:
+5
-1
@@ -19,6 +19,7 @@ export const metadata: Metadata = {
|
||||
};
|
||||
|
||||
import { TooltipProvider } from "@/components/ui/tooltip";
|
||||
import { Toaster } from "sonner";
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
@@ -31,7 +32,10 @@ export default function RootLayout({
|
||||
className={cn("h-full", "dark", "antialiased", anuphan.variable, geistSans.variable, "font-sans")}
|
||||
>
|
||||
<body className={`${anuphan.className} ${geistSans.className}`}>
|
||||
<TooltipProvider>{children}</TooltipProvider>
|
||||
<TooltipProvider>
|
||||
<Toaster richColors closeButton position="bottom-right" theme="dark" />
|
||||
{children}
|
||||
</TooltipProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user