Fix dashboard animations not playing on navigation by adding key=pathname

This commit is contained in:
2026-09-24 22:23:30 +05:30
parent d806265237
commit a280513bbd

View File

@@ -428,7 +428,9 @@ export default function DashboardLayout({ children }: { children: ReactNode }) {
{/* Scrollable page body */}
<main className="flex-1 overflow-y-auto relative bg-background/50">
{children}
<div key={pathname} className="w-full h-full">
{children}
</div>
</main>
</div>