feat(dashboard): persist active tab in URL and keep active tab on reload
Deploy Canina / deploy (push) Successful in 1m30s
Deploy Canina / deploy (push) Successful in 1m30s
This commit is contained in:
1 parent
a2b8afccc3
commit
bf41ba038e
13 files changed
+17304
-9367
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { Suspense } from 'react';
|
||||
import type { Metadata } from 'next';
|
||||
import UserDashboard from "../../components/UserDashboard";
|
||||
import { getPageMetadata } from "../../lib/seo";
|
||||
@@ -12,6 +13,11 @@ export async function generateMetadata(): Promise<Metadata> {
|
||||
}
|
||||
|
||||
export default function DashboardPage() {
|
||||
return <UserDashboard />;
|
||||
return (
|
||||
<Suspense fallback={<div className="min-h-screen bg-medical-gray-50 flex items-center justify-center font-vazir text-xs text-medical-gray-400">در حال بارگذاری داشبورد...</div>}>
|
||||
<UserDashboard />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user