fix: dashboard api calls, multi profile fetch

This commit is contained in:
Sajad Mirjalili
2025-08-21 14:51:56 +03:30
parent 4d84a29bda
commit 16fa6615c9
24 changed files with 656 additions and 679 deletions

View File

@@ -1,5 +1,6 @@
import { Layout } from '@/components';
import { NavigateWithToast } from '@/components/NavigateWithToast';
import { ProfileProvider } from '@/features/profile/providers/ProfileProvider';
import {
Calendar,
Devices,
@@ -93,7 +94,7 @@ export const appRoutes: RouteConfig[] = [
element: <AccountCreatedPage />,
authorize: true,
},
{ path: '/signup', element: <UserCompletionPage />, authorize: true },
{ path: '/signup', element: <UserCompletionPage /> },
{
path: '/forget-password',
element: <ForgetPasswordPage />,
@@ -101,7 +102,11 @@ export const appRoutes: RouteConfig[] = [
{
path: '/setting',
element: <Layout />,
element: (
<ProfileProvider>
<Layout />
</ProfileProvider>
),
authorize: true,
children: [
{