Dashboard as First Page
How to set Dashboardas 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 ||============================== //
const router = createBrowserRouter(
[
// {
// path: '/',
// element: <SimpleLayout layout={SimpleLayoutType.LANDING} />,
// children: [
// {
// index: true,
// element: <PagesLanding />
// }
// ]
// },
// LoginRoutes,
MainRoutes,
ComponentsRoutes
],
{ basename: import.meta.env.VITE_APP_BASE_NAME }
);
export default router;Last updated