This commit is contained in:
Malai Raja
2023-12-01 10:32:28 +05:30
parent b3371d3bc0
commit 2aab086a66
16 changed files with 152 additions and 52 deletions

View File

@@ -1,9 +1,9 @@
// import { lazy } from 'react';
import { lazy } from 'react';
// project import
// import GuestGuard from 'utils/route-guard/GuestGuard';
import CommonLayout from 'layout/CommonLayout';
// import Loadable from 'components/Loadable';
import Loadable from 'components/Loadable';
// render - login
// const AuthLogin = Loadable(lazy(() => import('pages/auth/login')));
@@ -12,6 +12,7 @@ import CommonLayout from 'layout/CommonLayout';
// const AuthCheckMail = Loadable(lazy(() => import('pages/auth/check-mail')));
// const AuthResetPassword = Loadable(lazy(() => import('pages/auth/reset-password')));
// const AuthCodeVerification = Loadable(lazy(() => import('pages/auth/code-verification')));
const Login = Loadable(lazy(() => import('pages/nearle/login')));
// ==============================|| AUTH ROUTING ||============================== //
@@ -26,6 +27,14 @@ const LoginRoutes = {
// </GuestGuard>
),
children: [
{
path: '/',
element: <Login />
},
{
path: 'login',
element: <Login />
},
// {
// path: '/',
// element: <AuthLogin />
@@ -55,7 +64,8 @@ const LoginRoutes = {
// element: <AuthCodeVerification />
// }
]
}
},
]
};

View File

@@ -32,10 +32,10 @@ const MainRoutes = {
// </AuthGuard>
),
children: [
{
path: 'sample-page',
element: <SamplePage />
},
// {
// path: 'sample-page',
// element: <SamplePage />
// },
{
path: 'dashboard',
element: <Dashboard />
@@ -43,6 +43,7 @@ const MainRoutes = {
]
},
{
path:'/login',
element:<Login />