From 1b6545fa653df44b019f6676faed39880999b2bf Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Mon, 21 Aug 2017 12:08:41 +0200 Subject: Add basic react-konva rendering prototype --- 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 af1b70b5..deaf8ded 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -1,18 +1,22 @@ import React from 'react'; import {BrowserRouter, Redirect, Route, Switch} from "react-router-dom"; import {userIsLoggedIn} from "../auth/index"; +import App from "../pages/App"; 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 : ; +const AppComponent = ({match}) => userIsLoggedIn() ? + : ; const Routes = () => ( )}/> + )}/> -- cgit v1.2.3