You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.4 KiB

  1. import { lazy } from 'react';
  2. // project import
  3. import Loadable from 'components/Loadable';
  4. import MainLayout from 'layout/MainLayout';
  5. // render - dashboard
  6. const DashboardDefault = Loadable(lazy(() => import('pages/dashboard')));
  7. // render - sample page
  8. const SamplePage = Loadable(lazy(() => import('pages/extra-pages/SamplePage')));
  9. // render - utilities
  10. const Typography = Loadable(lazy(() => import('pages/components-overview/Typography')));
  11. const Color = Loadable(lazy(() => import('pages/components-overview/Color')));
  12. const Shadow = Loadable(lazy(() => import('pages/components-overview/Shadow')));
  13. const AntIcons = Loadable(lazy(() => import('pages/components-overview/AntIcons')));
  14. // ==============================|| MAIN ROUTING ||============================== //
  15. const MainRoutes = {
  16. path: '/',
  17. element: <MainLayout />,
  18. children: [
  19. {
  20. path: '/',
  21. element: <DashboardDefault />
  22. },
  23. {
  24. path: '/',
  25. children: [
  26. {
  27. path: 'dashboard',
  28. element: <DashboardDefault />
  29. }
  30. ]
  31. },
  32. {
  33. path: 'color',
  34. element: <Color />
  35. },
  36. {
  37. path: 'sample-page',
  38. element: <SamplePage />
  39. },
  40. {
  41. path: 'shadow',
  42. element: <Shadow />
  43. },
  44. {
  45. path: 'typography',
  46. element: <Typography />
  47. },
  48. {
  49. path: 'icons/ant',
  50. element: <AntIcons />
  51. }
  52. ]
  53. };
  54. export default MainRoutes;