fix(p2): Calendar view toggle - force Suspense remount with key prop

This commit is contained in:
Hermes
2026-07-31 01:37:59 +00:00
parent 08841abd68
commit 4bf1c8bf4f
+1 -1
View File
@@ -394,7 +394,7 @@ export default function CalendarPage() {
</Button>
</div>
) : (
<Suspense
<Suspense key={view}
fallback={
<div className="flex h-[600px] items-center justify-center rounded-lg border bg-muted/30">
<div className="animate-pulse text-sm text-muted-foreground">Loading calendar...</div>