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/containers/auth/Login.js | 13 ++++++------- frontend/src/containers/auth/Logout.js | 2 +- frontend/src/containers/auth/ProfileName.js | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) (limited to 'frontend/src/containers/auth') diff --git a/frontend/src/containers/auth/Login.js b/frontend/src/containers/auth/Login.js index deb9a654..2f9726bf 100644 --- a/frontend/src/containers/auth/Login.js +++ b/frontend/src/containers/auth/Login.js @@ -27,7 +27,7 @@ class LoginContainer extends React.Component { render() { if (!this.props.visible) { - return + return } return ( @@ -35,13 +35,12 @@ class LoginContainer extends React.Component { clientId={process.env.REACT_APP_OAUTH_CLIENT_ID} onSuccess={this.onAuthResponse.bind(this)} onFailure={this.onAuthFailure.bind(this)} - render={renderProps => ( + render={(renderProps) => ( - Login with Google + Login with Google )} - > - + > ) } } @@ -52,9 +51,9 @@ const mapStateToProps = (state, ownProps) => { } } -const mapDispatchToProps = dispatch => { +const mapDispatchToProps = (dispatch) => { return { - onLogin: payload => dispatch(logIn(payload)), + onLogin: (payload) => dispatch(logIn(payload)), } } diff --git a/frontend/src/containers/auth/Logout.js b/frontend/src/containers/auth/Logout.js index 6e885fb1..22400381 100644 --- a/frontend/src/containers/auth/Logout.js +++ b/frontend/src/containers/auth/Logout.js @@ -2,7 +2,7 @@ import { connect } from 'react-redux' import { logOut } from '../../actions/auth' import LogoutButton from '../../components/navigation/LogoutButton' -const mapDispatchToProps = dispatch => { +const mapDispatchToProps = (dispatch) => { return { onLogout: () => dispatch(logOut()), } diff --git a/frontend/src/containers/auth/ProfileName.js b/frontend/src/containers/auth/ProfileName.js index 8511a9b1..06da75ab 100644 --- a/frontend/src/containers/auth/ProfileName.js +++ b/frontend/src/containers/auth/ProfileName.js @@ -1,7 +1,7 @@ import React from 'react' import { connect } from 'react-redux' -const mapStateToProps = state => { +const mapStateToProps = (state) => { return { text: state.auth.givenName + ' ' + state.auth.familyName, } -- cgit v1.2.3