From 6d04884b02b716a76c838ad9e0fe41cd9babacaf Mon Sep 17 00:00:00 2001 From: Lucas Schoenfelder <les17@inf.ufpr.br> Date: Thu, 6 Aug 2020 15:08:41 -0300 Subject: [PATCH] argh --- src/Components/LoginContainer.js | 5 ++--- src/Components/MeuBotaoGoogle.js | 19 ------------------- 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 src/Components/MeuBotaoGoogle.js diff --git a/src/Components/LoginContainer.js b/src/Components/LoginContainer.js index 9f7393fd..d10a7cde 100644 --- a/src/Components/LoginContainer.js +++ b/src/Components/LoginContainer.js @@ -90,7 +90,7 @@ class LoginContainer extends Component { <div style={{paddingTop: "20px"}}> <div style={{marginTop:"0"}}> - {/*<StyledGoogleLoginButton + <StyledGoogleLoginButton clientId="288460085642-k4veg4fo8kddvjer8b055n9da5qtgha7.apps.googleusercontent.com" onSuccess={responseGoogle} onFailure={responseGoogle} @@ -98,8 +98,7 @@ class LoginContainer extends Component { cookiePolicy={'single_host_origin'} <span style={{textTransform:"none", fontSize:"13px"}}>Usando o Google</span> </StyledGoogleLoginButton> - >*/} - <MeuBotaoGoogle/> + > </div> </div> diff --git a/src/Components/MeuBotaoGoogle.js b/src/Components/MeuBotaoGoogle.js deleted file mode 100644 index 088eca79..00000000 --- a/src/Components/MeuBotaoGoogle.js +++ /dev/null @@ -1,19 +0,0 @@ -import React, {useState} from 'react' -import { Button } from '@material-ui/core'; -import {StyledGoogleLoginButton} from './LoginContainer' -import axios from 'axios' -import {apiUrl} from '../env'; - -export default function MeuBotaoGoogle (props) { - - const handleAuthentication = () => { - axios.get('https://accounts.google.com/o/oauth2/v2/auth?scope=openid%20profile%20email&redirect_uri=http://api.portalmec.c3sl.ufpr.br/v1/omniauth/google_oauth/callback&reponse_type=code&client_id=288460085642-k4veg4fo8kddvjer8b055n9da5qtgha7.apps.googleusercontent.com').then( - (response) => console.log(response), - (error) => console.log(error), - ) - } - - return( - <Button onClick={handleAuthentication}>Entrar com o Google</Button> - ) -} -- GitLab