improvement: updated toasts. no invisible toast anymore.
This commit is contained in:
@@ -8,6 +8,7 @@ import { useAuth } from '@/lib/hooks/useAuth';
|
||||
import Sidebar from '@/components/ui/shared/Sidebar';
|
||||
import { TopBarControls } from '@/components/ui/shared/TopBarControls';
|
||||
import { DashboardAccountMenu } from '@/components/ui/dashboard/DashboardAccountMenu';
|
||||
import { ToastProvider } from '@/components/ui/shared/ToastProvider';
|
||||
import {
|
||||
canAccessDashboardRoute,
|
||||
firstAccessibleDashboardPath,
|
||||
@@ -70,7 +71,8 @@ export default function DashboardLayout({ children }: { children: React.ReactNod
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex h-[100dvh] app-web-bg text-text-primary">
|
||||
<ToastProvider>
|
||||
<div className="flex h-[100dvh] app-web-bg text-text-primary">
|
||||
{sidebarOpen ? (
|
||||
<button
|
||||
type="button"
|
||||
@@ -94,7 +96,8 @@ export default function DashboardLayout({ children }: { children: React.ReactNod
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ToastProvider>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user