This commit is contained in:
Malai Raja
2023-11-27 19:09:26 +05:30
parent 7113ac0681
commit b3371d3bc0
20 changed files with 3176 additions and 2314 deletions

View File

@@ -4,7 +4,7 @@ import { lazy } from 'react';
import MainLayout from 'layout/MainLayout';
import CommonLayout from 'layout/CommonLayout';
import Loadable from 'components/Loadable';
import AuthGuard from 'utils/route-guard/AuthGuard';
// import AuthGuard from 'utils/route-guard/AuthGuard';
// pages routing
const MaintenanceError = Loadable(lazy(() => import('pages/maintenance/404')));
@@ -14,6 +14,10 @@ const MaintenanceComingSoon = Loadable(lazy(() => import('pages/maintenance/comi
// render - sample page
const SamplePage = Loadable(lazy(() => import('pages/extra-pages/sample-page')));
const Login = Loadable(lazy(() => import('pages/nearle/login')));
const Dashboard = Loadable(lazy(() => import('pages/nearle/dashboard')));
// ==============================|| MAIN ROUTING ||============================== //
@@ -23,17 +27,26 @@ const MainRoutes = {
{
path: '/',
element: (
<AuthGuard>
// <AuthGuard>
<MainLayout />
</AuthGuard>
// </AuthGuard>
),
children: [
{
path: 'sample-page',
element: <SamplePage />
}
},
{
path: 'dashboard',
element: <Dashboard />
},
]
},
{
path:'/login',
element:<Login />
},
{
path: '/maintenance',
element: <CommonLayout />,