Created
October 19, 2016 22:40
-
-
Save Connorelsea/d231437a27feed6c8e9f8b581e59ed43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from "react" | |
| import GoogleLogin from "react-google-login" | |
| import { processLogin } from "../../utils/login-utils.js" | |
| import "./Login.scss" | |
| import logo from "../../images/logo.svg" | |
| type Props = { | |
| onLoginSuccess: func, | |
| onLoginFailure: func, | |
| onLoginRequest: func, | |
| clientID: string, | |
| }; | |
| class Login extends Component { | |
| props: Props; | |
| render() { | |
| return ( | |
| <div className="Login"> | |
| <div className="Login--Header"> | |
| <div className="Login--Header--Top"> | |
| <img className="Login--Header--Logo" src={logo} /> | |
| <h1 className="Login--Header--Title">Office</h1> | |
| </div> | |
| <p className="Login--Header--Text Login--Header--Text__Upper"> | |
| Not Logged In | |
| </p> | |
| <p className="Login--Header--Text Login--Header--Text__Lower"> | |
| Log in using your NewAperio/Google account to continue. | |
| </p> | |
| </div> | |
| <GoogleLogin | |
| buttonText="Login" | |
| className="Login--Button" | |
| clientId={this.props.clientID} | |
| onSuccess={this.props.onLoginSuccess} | |
| onFailure={this.props.onLoginFailure} | |
| onRequest={this.props.onLoginRequest} | |
| /> | |
| </div> | |
| ) | |
| } | |
| } | |
| export default Login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment