diff --git a/src/Components/LoginContainer.js b/src/Components/LoginContainer.js index 9f7393fdb1dd9302280d0307d8945a1795522d0e..d10a7cde7221b5fa2b06dd4342cd9c81564c7a21 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 088eca7919399f5d81a27b0336e4c0469d90c6b8..0000000000000000000000000000000000000000 --- 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> - ) -}