-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy pathindex.js
63 lines (60 loc) · 1.47 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { lazy } from 'react'
// use lazy for better code splitting, a.k.a. load faster
const Dashboard = lazy(() => import('../pages/Dashboard'))
const Forms = lazy(() => import('../pages/Forms'))
const Cards = lazy(() => import('../pages/Cards'))
const Charts = lazy(() => import('../pages/Charts'))
const Buttons = lazy(() => import('../pages/Buttons'))
const Modals = lazy(() => import('../pages/Modals'))
const Tables = lazy(() => import('../pages/Tables'))
const Page404 = lazy(() => import('../pages/404'))
const Blank = lazy(() => import('../pages/Blank'))
/**
* ⚠ These are internal routes!
* They will be rendered inside the app, using the default `containers/Layout`.
* If you want to add a route to, let's say, a landing page, you should add
* it to the `App`'s router, exactly like `Login`, `CreateAccount` and other pages
* are routed.
*
* If you're looking for the links rendered in the SidebarContent, go to
* `routes/sidebar.js`
*/
const routes = [
{
path: '/dashboard', // the url
component: Dashboard, // view rendered
},
{
path: '/forms',
component: Forms,
},
{
path: '/cards',
component: Cards,
},
{
path: '/charts',
component: Charts,
},
{
path: '/buttons',
component: Buttons,
},
{
path: '/modals',
component: Modals,
},
{
path: '/tables',
component: Tables,
},
{
path: '/404',
component: Page404,
},
{
path: '/blank',
component: Blank,
},
]
export default routes