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+
13const AdministrationModule = {
24 init ( ) { } ,
35}
6+ export { Administration }
47
58export default AdministrationModule
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import config from './_config'
55
66import DashboardLayout from '_layouts/DashboardLayout'
77import { Auth } from './Auth'
8+ import { Administration } from './Administration'
89import { Dashboard } from './Dashboard'
910
1011// Use different router type depending on configuration
@@ -16,7 +17,12 @@ const AppRouter = () => (
1617 < Switch >
1718 { /* <Route exact path="/" render={() => <Redirect to="/sales/dashboard" />} /> */ }
1819 < 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+ />
2026 { /* <Route path="/" component={DashboardLayout} /> */ }
2127 { /* <RoutePrivate path="/" component={LoggedInRouter} /> */ }
2228 </ Switch >
Original file line number Diff line number Diff line change @@ -71,12 +71,12 @@ const SidebarNav = props => {
7171 items : [
7272 {
7373 name : 'All Organizations' ,
74- link : '/admin /accounts' ,
74+ link : '/administration /accounts' ,
7575 Icon : IconAccount ,
7676 } ,
7777 {
7878 name : 'All Users' ,
79- link : '/admin /users' ,
79+ link : '/administration /users' ,
8080 Icon : IconGroup ,
8181 } ,
8282 ] ,
You can’t perform that action at this time.
0 commit comments