Fix nested routes
This commit is contained in:
1 parent
1eacf1fbee
commit
f7a9ef5711
4 files changed
+9
-12
No files matched your search
+1
-4
@@ -1,5 +1,5 @@
|
||||
import { ApolloProvider } from 'react-apollo'
|
||||
import React, { Component } from 'react'
|
||||
import React from 'react'
|
||||
import { Route, BrowserRouter, Switch } from 'react-router-dom'
|
||||
import { hot } from 'react-hot-loader'
|
||||
|
||||
@@ -39,17 +39,14 @@ export const MasterApp = () => (
|
||||
}}
|
||||
/>
|
||||
<Route
|
||||
exact
|
||||
path='/teams'
|
||||
render={props => <Teams {...props} auth={auth} />}
|
||||
/>
|
||||
<Route
|
||||
exact
|
||||
path='/keys'
|
||||
render={props => <KeyVault {...props} />}
|
||||
/>
|
||||
<Route
|
||||
exact
|
||||
path='/users'
|
||||
render={props => <Users {...props} auth={auth} />}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user