Login as First Page
How to set login as First page instead landing
// import { lazy } from 'react';
import { useRoutes } from 'react-router-dom';
// project-imports
// import CommonLayout from 'layout/CommonLayout';
// import Loadable from 'components/Loadable';
import ComponentsRoutes from './ComponentsRoutes';
import LoginRoutes from './LoginRoutes';
import MainRoutes from './MainRoutes';
// render - landing page
// const PagesLanding = Loadable(lazy(() => import('pages/landing')));
// ==============================|| ROUTING RENDER ||============================== //
export default function ThemeRoutes() {
// return useRoutes([{ path: '/', element: <CommonLayout layout="landing" />,
// children: [
// {
// path: '/',
// element: <PagesLanding />
// }
// ]
// },
// LoginRoutes,
// ComponentsRoutes,
// MainRoutes
// ]);
return useRoutes([LoginRoutes, ComponentsRoutes, MainRoutes]);
}Last updated