style: apply prettier formatting
This commit is contained in:
@@ -4,34 +4,52 @@ import { adminAuthGuard } from './guards/admin-auth.guard';
|
||||
export const ADMIN_ROUTES: Routes = [
|
||||
{
|
||||
path: 'login',
|
||||
loadComponent: () => import('./pages/admin-login.component').then(m => m.AdminLoginComponent)
|
||||
loadComponent: () =>
|
||||
import('./pages/admin-login.component').then(
|
||||
(m) => m.AdminLoginComponent,
|
||||
),
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
canActivate: [adminAuthGuard],
|
||||
loadComponent: () => import('./pages/admin-shell.component').then(m => m.AdminShellComponent),
|
||||
loadComponent: () =>
|
||||
import('./pages/admin-shell.component').then(
|
||||
(m) => m.AdminShellComponent,
|
||||
),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
pathMatch: 'full',
|
||||
redirectTo: 'orders'
|
||||
redirectTo: 'orders',
|
||||
},
|
||||
{
|
||||
path: 'orders',
|
||||
loadComponent: () => import('./pages/admin-dashboard.component').then(m => m.AdminDashboardComponent)
|
||||
loadComponent: () =>
|
||||
import('./pages/admin-dashboard.component').then(
|
||||
(m) => m.AdminDashboardComponent,
|
||||
),
|
||||
},
|
||||
{
|
||||
path: 'filament-stock',
|
||||
loadComponent: () => import('./pages/admin-filament-stock.component').then(m => m.AdminFilamentStockComponent)
|
||||
loadComponent: () =>
|
||||
import('./pages/admin-filament-stock.component').then(
|
||||
(m) => m.AdminFilamentStockComponent,
|
||||
),
|
||||
},
|
||||
{
|
||||
path: 'contact-requests',
|
||||
loadComponent: () => import('./pages/admin-contact-requests.component').then(m => m.AdminContactRequestsComponent)
|
||||
loadComponent: () =>
|
||||
import('./pages/admin-contact-requests.component').then(
|
||||
(m) => m.AdminContactRequestsComponent,
|
||||
),
|
||||
},
|
||||
{
|
||||
path: 'sessions',
|
||||
loadComponent: () => import('./pages/admin-sessions.component').then(m => m.AdminSessionsComponent)
|
||||
}
|
||||
]
|
||||
}
|
||||
loadComponent: () =>
|
||||
import('./pages/admin-sessions.component').then(
|
||||
(m) => m.AdminSessionsComponent,
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user