Skip to content

Commit

Permalink
google login
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdlm committed Oct 22, 2021
1 parent c409931 commit ce289e7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
5 changes: 4 additions & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export default function Home(props) {
<LogOnScreen />
)} */}
{screenState !== 1 && (
<Facebook handleStatusLogged={handleStatusLogged} />
<>
<GoogleLogIn handleStatusLogged={handleStatusLogged} />
<Facebook handleStatusLogged={handleStatusLogged} />
</>
)}
{screenState === 1 && (
<>
Expand Down
34 changes: 17 additions & 17 deletions src/components/GoogleLogIn/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ export default function GoogleLogIn({ handleStatusLogged }) {
console.log(response);
};
return (
<div
style={{
width: "100%",
height: "100%",
display: "flex",
justifyContent: "center",
marginTop: "50vh",
}}
>
<GoogleLogin
clientId="279991950987-fa92c6k1lffqtegplfqd9r1p8dos5kn6.apps.googleusercontent.com"
buttonText="Login"
onSuccess={responseGoogleSucess}
onFailed={responseGoogleFailed}
cookiePolicy={"single_host_origin"}
/>
</div>
// <div
// style={{
// width: "100%",
// height: "100%",
// display: "flex",
// justifyContent: "center",
// marginTop: "50vh",
// }}
// >
<GoogleLogin
clientId="279991950987-fa92c6k1lffqtegplfqd9r1p8dos5kn6.apps.googleusercontent.com"
buttonText="Login"
onSuccess={responseGoogleSucess}
onFailed={responseGoogleFailed}
cookiePolicy={"single_host_origin"}
/>
// </div>
);
}

0 comments on commit ce289e7

Please sign in to comment.