-
Notifications
You must be signed in to change notification settings - Fork 9
/
headerRoutes.tsx
32 lines (30 loc) · 965 Bytes
/
headerRoutes.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react';
import { appPages, authPages, componentsPages } from '@/config/pages.config';
import { TRoute } from '@/types/route.type';
import DefaultHeaderTemplate from '../templates/layouts/Headers/DefaultHeader.template';
import ComponentAndTemplateHeaderTemplate from '../templates/layouts/Headers/ComponentAndTemplateHeader.template';
const headerRoutes: TRoute[] = [
{ path: authPages.loginPage.to, element: null },
{
path: `${componentsPages.uiPages.to}/*`,
element: <ComponentAndTemplateHeaderTemplate />,
},
{
path: `${componentsPages.formPages.to}/*`,
element: <ComponentAndTemplateHeaderTemplate />,
},
{
path: `${componentsPages.integratedPages.to}/*`,
element: <ComponentAndTemplateHeaderTemplate />,
},
{
path: appPages.projectAppPages.subPages.projectDashboardPage.to,
element: null,
},
{
path: '/',
element: null,
},
{ path: '/*', element: <DefaultHeaderTemplate /> },
];
export default headerRoutes;