diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-09 14:14:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-09 14:14:45 +0200 |
| commit | 4f1c48bf32ded0ce1277b6483bdac7ec489f055f (patch) | |
| tree | 1a2c7c09fb87731086ddcdb6570f710ad5cd56b2 /opendc-web/opendc-web-ui/src/containers/auth/Login.js | |
| parent | fb84d53278fa59a7c7a95538747563a0aed692a2 (diff) | |
| parent | f79c0872ddfcbe02a7bcc498b4a9d5d202caccd2 (diff) | |
ui: Update OpenDC homepage
This pull request contains various updates to the opendc.org homepage,
in order to reflect the updates from OpenDC 2.0.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/containers/auth/Login.js')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/containers/auth/Login.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/opendc-web/opendc-web-ui/src/containers/auth/Login.js b/opendc-web/opendc-web-ui/src/containers/auth/Login.js index 9201c09a..bebe015c 100644 --- a/opendc-web/opendc-web-ui/src/containers/auth/Login.js +++ b/opendc-web/opendc-web-ui/src/containers/auth/Login.js @@ -3,6 +3,7 @@ import React from 'react' import GoogleLogin from 'react-google-login' import { connect } from 'react-redux' import { logIn } from '../../actions/auth' +import config from '../../config' class LoginContainer extends React.Component { static propTypes = { @@ -32,12 +33,12 @@ class LoginContainer extends React.Component { return ( <GoogleLogin - clientId={window.$$env['OAUTH_CLIENT_ID']} + clientId={config['OAUTH_CLIENT_ID']} onSuccess={this.onAuthResponse.bind(this)} onFailure={this.onAuthFailure.bind(this)} 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> )} /> |
