Skip to content

Commit

Permalink
fix(sign-in): regression in sign-in buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
balzdur committed Jul 17, 2024
1 parent 57a51eb commit f7a2000
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/app-builder/src/components/Auth/SignInWithGoogle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ function SignInWithGoogleButton({
return (
<button
className="relative flex h-10 w-full items-center rounded border-2 border-[#1a73e8] bg-[#1a73e8] transition hover:bg-[rgb(69,128,233)] disabled:cursor-wait"
onClick={() => {
void onClick?.();
}}
onClick={onClick}
disabled={loading}
>
<div className="bg-grey-00 flex h-full w-10 items-center justify-center rounded-l-[3px]">
Expand Down Expand Up @@ -83,7 +81,9 @@ function ClientSignInWithGoogle({

return (
<SignInWithGoogleButton
onClick={void handleGoogleSignIn}
onClick={() => {
void handleGoogleSignIn();
}}
// We can't rely on state.loading if the user closes the popup without signing in
// Related Firebase issue: https://github.com/firebase/firebase-js-sdk/issues/8061
loading={loading}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ function ClientSignInWithMicrosoft({

return (
<SignInWithMicrosoftButton
onClick={void handleMicrosoftSignIn}
onClick={() => {
void handleMicrosoftSignIn();
}}
// We can't rely on state.loading if the user closes the popup without signing in
// Related Firebase issue: https://github.com/firebase/firebase-js-sdk/issues/8061
loading={loading}
Expand Down

0 comments on commit f7a2000

Please sign in to comment.