This commit is contained in:
bflatastic committed 2024-09-26 20:42:32 +07:00
1 parent 9064dedbb8
commit a4341dc097
1 file changed
-29
@@ -343,33 +343,4 @@ function LoginPage() {
);
}
const CLIENT_ID =
"788843034237-uqcg8tbgofrcf1to37e1bqphd924jaf6.apps.googleusercontent.com";
function GoogleLogin() {
return (
// https://developers.google.com/identity/gsi/web/reference/html-reference
// The button changes size and is difficult to control!
// https://stackoverflow.com/q/72411548
<div className="mt-3">
<div
id="g_id_onload"
data-client_id={CLIENT_ID}
data-callback="handleGoogleCredentialResponse"
/>
<div
className="g_id_signin"
data-type="standard"
// Extra configs
data-shape="rectangular"
data-theme="outline"
data-text="signin_with"
data-size="large"
data-width="100000"
data-logo_alignment="left"
/>
</div>
);
}
export { LoginPage };