Dashboard as First Page
How to set Dashboards First page instead landing
// import { lazy } from 'react';
import { createBrowserRouter } from 'react-router-dom';
// project-imports
import AdminPanelRoutes from './AdminPanelRoutes';
import ApplicationRoutes from './ApplicationRoutes';
import ChartMapRoutes from './ChartMapRoutes';
import ComponentsRoutes from './ComponentsRoutes';
import FormsRoutes from './FormsRoutes';
import OtherRoutes from './OtherRoutes';
import PagesRoutes from './PagesRoutes';
import NavigationRoutes from './NavigationRoutes';
import TablesRoutes from './TablesRoutes';
// import Loadable from 'components/Loadable';
// import SimpleLayout from 'layout/Simple';
// const PagesLanding = Loadable(lazy(() => import('../views/Landing')));
// ==============================|| ROUTING RENDER ||============================== //
const router = createBrowserRouter(
[
// {
// path: '/',
// element: <SimpleLayout />,
// children: [
// {
// index: true,
// element: <PagesLanding />
// },
// {
// path: '/landing',
// element: <PagesLanding />
// }
// ]
// },
NavigationRoutes,
ApplicationRoutes,
AdminPanelRoutes,
ComponentsRoutes,
FormsRoutes,
TablesRoutes,
PagesRoutes,
OtherRoutes,
ChartMapRoutes
],
{
basename: import.meta.env.VITE_APP_BASE_NAME
}
);
export default router;
Last updated