summaryrefslogtreecommitdiff
path: root/frontend/src/containers/auth
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-07-22 16:28:47 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:21 +0200
commitd7469b9ebb01cf36a78cc98aab31fa8f307c4f65 (patch)
treed0535fa0cfe95001302fbd2b0d046d51caab6ffd /frontend/src/containers/auth
parent67b6ec800df8e023efadb60ae5f7919030b19789 (diff)
parent9e7cb3bd367607b32e102c3a87b68b33c53dec46 (diff)
Merge branch 'master' onto working copy
Diffstat (limited to 'frontend/src/containers/auth')
-rw-r--r--frontend/src/containers/auth/Login.js13
-rw-r--r--frontend/src/containers/auth/Logout.js2
-rw-r--r--frontend/src/containers/auth/ProfileName.js2
3 files changed, 8 insertions, 9 deletions
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 <span/>
+ return <span />
}
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) => (
<span onClick={renderProps.onClick} className="login btn btn-primary">
- <span className="fa fa-google"/> Login with Google
+ <span className="fa fa-google" /> Login with Google
</span>
)}
- >
- </GoogleLogin>
+ ></GoogleLogin>
)
}
}
@@ -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,
}