From 0a221464241ccda47e0dd52ba309ccf9dead0f96 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 17 Sep 2018 03:28:59 +0200 Subject: build --- app/client/auth/auth.gate.js | 25 +++++++++++-------------- app/client/index.jsx | 2 +- 2 files changed, 12 insertions(+), 15 deletions(-) (limited to 'app') diff --git a/app/client/auth/auth.gate.js b/app/client/auth/auth.gate.js index 07ab399..087dfc6 100644 --- a/app/client/auth/auth.gate.js +++ b/app/client/auth/auth.gate.js @@ -14,15 +14,21 @@ import { randint } from '../util/math' class AuthRouter extends Component { render(){ - console.log(this.props, Login) return (
- - - + + + + + { + this.props.actions.setReturnTo(props.location.pathname) + return ( + + ) + }} />
@@ -35,12 +41,11 @@ class AuthRouter extends Component { class AuthGate extends Component { render(){ - console.log(this.props.auth) if (!this.props.auth.initialized) { return
Loading
} if (this.props.auth.isAuthenticated) return
{this.props.children}
- return + return } componentDidMount(){ this.props.actions.checkin() @@ -56,11 +61,3 @@ const mapDispatchToProps = (dispatch) => ({ }); export default connect(mapStateToProps, mapDispatchToProps)(AuthGate); - - // { - // console.log(window.location.pathname) - // this.props.actions.setReturnTo(window.location.pathname) - // return ( - // - // ) - // }} /> \ No newline at end of file diff --git a/app/client/index.jsx b/app/client/index.jsx index 5bb84b7..0258a7a 100644 --- a/app/client/index.jsx +++ b/app/client/index.jsx @@ -29,10 +29,10 @@ const app = ( {module_list} -
} /> +
-- cgit v1.2.3-70-g09d2