Reorganize teh menus

This commit is contained in:
Urtzi Alfaro
2025-09-24 22:22:01 +02:00
parent dc6c6f213f
commit 6d4090f825
9 changed files with 2251 additions and 128 deletions

View File

@@ -29,8 +29,10 @@ const PerformanceAnalyticsPage = React.lazy(() => import('../pages/app/analytics
// Settings pages
const ProfilePage = React.lazy(() => import('../pages/app/settings/profile/ProfilePage'));
const BakeryConfigPage = React.lazy(() => import('../pages/app/settings/bakery-config/BakeryConfigPage'));
const PersonalInfoPage = React.lazy(() => import('../pages/app/settings/personal-info/PersonalInfoPage'));
const CommunicationPreferencesPage = React.lazy(() => import('../pages/app/settings/communication-preferences/CommunicationPreferencesPage'));
const SubscriptionPage = React.lazy(() => import('../pages/app/settings/subscription/SubscriptionPage'));
const InformationPage = React.lazy(() => import('../pages/app/database/information/InformationPage'));
const TeamPage = React.lazy(() => import('../pages/app/settings/team/TeamPage'));
const OrganizationsPage = React.lazy(() => import('../pages/app/settings/organizations/OrganizationsPage'));
@@ -162,11 +164,11 @@ export const AppRouter: React.FC = () => {
}
/>
<Route
path="/app/database/bakery-config"
path="/app/database/information"
element={
<ProtectedRoute>
<AppShell>
<BakeryConfigPage />
<InformationPage />
</AppShell>
</ProtectedRoute>
}
@@ -267,11 +269,31 @@ export const AppRouter: React.FC = () => {
{/* Settings Routes */}
<Route
path="/app/settings/profile"
path="/app/settings/personal-info"
element={
<ProtectedRoute>
<AppShell>
<ProfilePage />
<PersonalInfoPage />
</AppShell>
</ProtectedRoute>
}
/>
<Route
path="/app/settings/communication-preferences"
element={
<ProtectedRoute>
<AppShell>
<CommunicationPreferencesPage />
</AppShell>
</ProtectedRoute>
}
/>
<Route
path="/app/settings/subscription"
element={
<ProtectedRoute>
<AppShell>
<SubscriptionPage />
</AppShell>
</ProtectedRoute>
}