improvement: updated toasts. no invisible toast anymore.

This commit is contained in:
2026-07-12 21:30:28 +03:30
parent 540a339723
commit 53b43f2cdb
14 changed files with 236 additions and 140 deletions

View File

@@ -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>
);
}