26: domain-specific dashboard - add Suspense wrapper for useSearchParams
This commit is contained in:
@@ -68,7 +68,7 @@ const widgetLabels: Record<string, string> = {
|
|||||||
'quick-capture': 'Quick Capture',
|
'quick-capture': 'Quick Capture',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function DashboardPage() {
|
function DashboardPage() {
|
||||||
const { widgets, setWidgets, addWidget, removeWidget } = useDashboardStore();
|
const { widgets, setWidgets, addWidget, removeWidget } = useDashboardStore();
|
||||||
const [layoutAnnouncement, setLayoutAnnouncement] = React.useState('');
|
const [layoutAnnouncement, setLayoutAnnouncement] = React.useState('');
|
||||||
const [editMode, setEditMode] = React.useState(false);
|
const [editMode, setEditMode] = React.useState(false);
|
||||||
@@ -203,3 +203,10 @@ export default function DashboardPage() {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
export default function DashboardPageWrapper() {
|
||||||
|
return (
|
||||||
|
<Suspense fallback={<div className="py-12 text-center text-muted-foreground">Loading dashboard...</div>}>
|
||||||
|
<DashboardPage />
|
||||||
|
</Suspense>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user