From de8f12d74faef5fa3f9e38d1340948cab2d06ea3 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 1 Jul 2020 13:33:31 +0200 Subject: Manually generate IDs --- frontend/src/routes/index.js | 108 +++++++++++++++++++++---------------------- 1 file changed, 54 insertions(+), 54 deletions(-) (limited to 'frontend/src/routes') diff --git a/frontend/src/routes/index.js b/frontend/src/routes/index.js index f7523458..119cdb54 100644 --- a/frontend/src/routes/index.js +++ b/frontend/src/routes/index.js @@ -1,64 +1,64 @@ -import React from "react"; -import { BrowserRouter, Redirect, Route, Switch } from "react-router-dom"; -import { userIsLoggedIn } from "../auth/index"; -import App from "../pages/App"; -import Experiments from "../pages/Experiments"; -import Home from "../pages/Home"; -import NotFound from "../pages/NotFound"; -import Profile from "../pages/Profile"; -import Simulations from "../pages/Simulations"; +import React from 'react' +import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom' +import { userIsLoggedIn } from '../auth/index' +import App from '../pages/App' +import Experiments from '../pages/Experiments' +import Home from '../pages/Home' +import NotFound from '../pages/NotFound' +import Profile from '../pages/Profile' +import Simulations from '../pages/Simulations' const ProtectedComponent = component => () => - userIsLoggedIn() ? component : ; + userIsLoggedIn() ? component : const AppComponent = ({ match }) => - userIsLoggedIn() ? ( - - ) : ( - - ); + userIsLoggedIn() ? ( + + ) : ( + + ) const ExperimentsComponent = ({ match }) => - userIsLoggedIn() ? ( - - ) : ( - - ); + userIsLoggedIn() ? ( + + ) : ( + + ) const SimulationComponent = ({ match }) => - userIsLoggedIn() ? ( - - ) : ( - - ); + userIsLoggedIn() ? ( + + ) : ( + + ) const Routes = () => ( - - - - )} - /> - - - - )} /> - - - -); + + + + )} + /> + + + + )}/> + + + +) -export default Routes; +export default Routes -- cgit v1.2.3