File tree Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+ // import { Route } from 'react-router-dom'
3
+ import PropTypes from 'prop-types'
4
+
5
+ const Administration = ( { match } ) => {
6
+ return (
7
+ < div >
8
+ { /* <Route path={`${match.path}/login` } component={Login} /> */ }
9
+ Hello Administration
10
+ </ div >
11
+ )
12
+ }
13
+
14
+ Administration . propTypes = { }
15
+
16
+ export default Administration
Original file line number Diff line number Diff line change
1
+ import Administration from './Administration'
2
+
1
3
const AdministrationModule = {
2
4
init ( ) { } ,
3
5
}
6
+ export { Administration }
4
7
5
8
export default AdministrationModule
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import config from './_config'
5
5
6
6
import DashboardLayout from '_layouts/DashboardLayout'
7
7
import { Auth } from './Auth'
8
+ import { Administration } from './Administration'
8
9
import { Dashboard } from './Dashboard'
9
10
10
11
// Use different router type depending on configuration
@@ -16,7 +17,12 @@ const AppRouter = () => (
16
17
< Switch >
17
18
{ /* <Route exact path="/" render={() => <Redirect to="/sales/dashboard" />} /> */ }
18
19
< Route path = "/auth" component = { Auth } />
19
- < RouteWithLayout path = { `/` } component = { Dashboard } layout = { DashboardLayout } />
20
+ < RouteWithLayout exact path = { `/` } component = { Dashboard } layout = { DashboardLayout } />
21
+ < RouteWithLayout
22
+ path = { `/administration` }
23
+ component = { Administration }
24
+ layout = { DashboardLayout }
25
+ />
20
26
{ /* <Route path="/" component={DashboardLayout} /> */ }
21
27
{ /* <RoutePrivate path="/" component={LoggedInRouter} /> */ }
22
28
</ Switch >
Original file line number Diff line number Diff line change @@ -71,12 +71,12 @@ const SidebarNav = props => {
71
71
items : [
72
72
{
73
73
name : 'All Organizations' ,
74
- link : '/admin /accounts' ,
74
+ link : '/administration /accounts' ,
75
75
Icon : IconAccount ,
76
76
} ,
77
77
{
78
78
name : 'All Users' ,
79
- link : '/admin /users' ,
79
+ link : '/administration /users' ,
80
80
Icon : IconGroup ,
81
81
} ,
82
82
] ,
You can’t perform that action at this time.
0 commit comments