refactor: migrate global toast notifications to Sonner and update admin UI navigation, layouts, and submission workflows

This commit is contained in:
2026-05-28 20:18:45 +07:00 Unverified
parent 9693bef355
commit bc78873ff8
7 changed files with 113 additions and 70 deletions
+5 -1
View File
@@ -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>
);