From 912e1b96bfa7d6c022d854fa744f719b49ca98d0 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 21 Jul 2020 15:33:37 +0200 Subject: Add first plotting attempts for portfolios --- frontend/src/routes/index.js | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'frontend/src/routes/index.js') diff --git a/frontend/src/routes/index.js b/frontend/src/routes/index.js index 96f615b1..4291a046 100644 --- a/frontend/src/routes/index.js +++ b/frontend/src/routes/index.js @@ -7,7 +7,7 @@ import NotFound from '../pages/NotFound' import Profile from '../pages/Profile' import Projects from '../pages/Projects' -const ProtectedComponent = (component) => () => (userIsLoggedIn() ? component : ) +const ProtectedComponent = (component) => () => (userIsLoggedIn() ? component : ) const AppComponent = ({ match }) => userIsLoggedIn() ? ( portfolioId={match.params.portfolioId} scenarioId={match.params.scenarioId} /> - ) : + ) : ( + + ) const Routes = () => ( - - )}/> - - - - )}/> - + + )} /> + + + + )} /> + ) -- cgit v1.2.3