Bring to root
This commit is contained in:
parent
3de179420e
commit
5c2b1ef117
File diff suppressed because one or more lines are too long
|
@ -43,7 +43,7 @@ function requireAuth(nextState, replace) {
|
|||
render((
|
||||
<Provider store={store}>
|
||||
<Router history={History}>
|
||||
<Route path="/" component={App}>
|
||||
<Route path="/" component={Dashboard}>
|
||||
<Route path="login" component={Login} />
|
||||
<Route path="dashboard" component={Dashboard} onEnter={requireAuth} />
|
||||
</Route>
|
||||
|
|
Reference in New Issue