From f3dbecbf55832df686d6969756640f6f5853f996 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 12 Sep 2017 16:50:45 +0200 Subject: Add experiments route --- src/routes/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/routes') diff --git a/src/routes/index.js b/src/routes/index.js index deaf8ded..8a155cb0 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -2,6 +2,7 @@ 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"; @@ -10,6 +11,8 @@ import Simulations from "../pages/Simulations"; const ProtectedComponent = (component) => () => userIsLoggedIn() ? component : ; const AppComponent = ({match}) => userIsLoggedIn() ? : ; +const ExperimentsComponent = ({match}) => userIsLoggedIn() ? + : ; const Routes = () => ( @@ -17,6 +20,7 @@ const Routes = () => ( )}/> + )}/> -- cgit v1.2.3