From 0907418ce2c6ca498b02e8e514e4945d79750467 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 5 Mar 2021 19:10:55 +0100 Subject: adding login view --- animism-align/frontend/app/router.js | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'animism-align/frontend/app/router.js') diff --git a/animism-align/frontend/app/router.js b/animism-align/frontend/app/router.js index 982429b..e4ea05e 100644 --- a/animism-align/frontend/app/router.js +++ b/animism-align/frontend/app/router.js @@ -2,8 +2,7 @@ import React, { Component } from 'react' import { ConnectedRouter } from 'connected-react-router' import { Route } from 'react-router' -import actions from 'app/actions' - +import AuthGate from 'app/views/auth/auth.gate' import Header from 'app/views/nav/header.component' import * as views from 'app/views' @@ -17,22 +16,21 @@ const viewList = Object.keys(views).map(name => { }) export default class Router extends Component { - componentDidMount() { - actions.site.loadProject() - } render() { return ( - -
-
- {viewList} - { - // redirect to index!! - setTimeout(() => this.props.history.push('/align'), 10) - return null - }} /> -
-
+ + +
+
+ {viewList} + { + // redirect to index!! + setTimeout(() => this.props.history.push('/align'), 10) + return null + }} /> +
+
+
) } } -- cgit v1.2.3-70-g09d2