diff --git a/frontend/src/app.js b/frontend/src/app.js index 69e0c39..56df924 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -8,6 +8,7 @@ import DashBoardDev from './pages/DashBoardDev'; import { ConnectedLogoutPage as LogoutPage } from './pages/logout'; import { connect } from 'react-redux'; import { history } from './util/history'; +import { AuthorizedRoute } from './components/AuthorizedRoute'; const LazyHomePage = React.lazy(() => import('./pages/home.lazy')); @@ -22,7 +23,7 @@ export class App extends Component { - + } /> diff --git a/frontend/src/components/AuthorizedRoute.js b/frontend/src/components/AuthorizedRoute.js new file mode 100644 index 0000000..9d7c6f5 --- /dev/null +++ b/frontend/src/components/AuthorizedRoute.js @@ -0,0 +1,7 @@ +import { Route } from 'react-router'; + +export function AuthorizedRoute({...props}) { + return ( + + ) +}