updates and removed on the dead codes
This commit is contained in:
@@ -1,17 +1,10 @@
|
||||
import { lazy } from 'react';
|
||||
|
||||
// project import
|
||||
// import GuestGuard from 'utils/route-guard/GuestGuard';
|
||||
import CommonLayout from 'layout/CommonLayout';
|
||||
import Loadable from 'components/Loadable';
|
||||
|
||||
// render - login
|
||||
// const AuthLogin = Loadable(lazy(() => import('pages/auth/login')));
|
||||
// const AuthRegister = Loadable(lazy(() => import('pages/auth/register')));
|
||||
// const AuthForgotPassword = Loadable(lazy(() => import('pages/auth/forgot-password')));
|
||||
// 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 ||============================== //
|
||||
@@ -21,11 +14,7 @@ const LoginRoutes = {
|
||||
children: [
|
||||
{
|
||||
path: '/',
|
||||
element: (
|
||||
// <GuestGuard>
|
||||
<CommonLayout />
|
||||
// </GuestGuard>
|
||||
),
|
||||
element: <CommonLayout />,
|
||||
children: [
|
||||
{
|
||||
path: '/',
|
||||
@@ -35,35 +24,6 @@ const LoginRoutes = {
|
||||
path: 'login',
|
||||
element: <Login />
|
||||
}
|
||||
|
||||
// {
|
||||
// path: '/',
|
||||
// element: <AuthLogin />
|
||||
// },
|
||||
// {
|
||||
// path: 'login',
|
||||
// element: <AuthLogin />
|
||||
// },
|
||||
// {
|
||||
// path: 'register',
|
||||
// element: <AuthRegister />
|
||||
// },
|
||||
// {
|
||||
// path: 'forgot-password',
|
||||
// element: <AuthForgotPassword />
|
||||
// },
|
||||
// {
|
||||
// path: 'check-mail',
|
||||
// element: <AuthCheckMail />
|
||||
// },
|
||||
// {
|
||||
// path: 'reset-password',
|
||||
// element: <AuthResetPassword />
|
||||
// },
|
||||
// {
|
||||
// path: 'code-verification',
|
||||
// element: <AuthCodeVerification />
|
||||
// }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -4,7 +4,6 @@ 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';
|
||||
|
||||
// pages routing
|
||||
const MaintenanceError = Loadable(lazy(() => import('pages/maintenance/404')));
|
||||
@@ -12,10 +11,7 @@ const MaintenanceError500 = Loadable(lazy(() => import('pages/maintenance/500'))
|
||||
const MaintenanceUnderConstruction = Loadable(lazy(() => import('pages/maintenance/under-construction')));
|
||||
const MaintenanceComingSoon = Loadable(lazy(() => import('pages/maintenance/coming-soon')));
|
||||
|
||||
// render - sample page
|
||||
// const SamplePage = Loadable(lazy(() => import('pages/extra-pages/sample-page')));
|
||||
const Login = Loadable(lazy(() => import('pages/nearle/login1')));
|
||||
// const Dashboard = Loadable(lazy(() => import('pages/nearle/dashboard')));
|
||||
|
||||
const Tenants = Loadable(lazy(() => import('pages/nearle/clients/Tenants')));
|
||||
const ClientsPricing = Loadable(lazy(() => import('pages/nearle/clientPricing/clientPricing')));
|
||||
@@ -60,11 +56,7 @@ const MainRoutes = {
|
||||
children: [
|
||||
{
|
||||
path: '/',
|
||||
element: (
|
||||
// <AuthGuard>
|
||||
<MainLayout />
|
||||
// </AuthGuard>
|
||||
),
|
||||
element: <MainLayout />,
|
||||
children: [
|
||||
{
|
||||
path: 'nearle',
|
||||
@@ -188,11 +180,6 @@ const MainRoutes = {
|
||||
path: 'viewprofile',
|
||||
element: <ViewProfile />
|
||||
}
|
||||
|
||||
// {
|
||||
// path: 'orders/create',
|
||||
// element: <Createorder />
|
||||
// },
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user