fix: Fix the loading state on the Continue with Github button (#17959)

Use the loading state on the continue with github button on sign-in.
This commit is contained in:
Ivan Vasilov authored and GitHub committed 2023-10-06 10:15:37 +02:00
1 parent bd70ae7d95
commit 7fbe48af55
1 file changed
+2 -2
@@ -35,7 +35,6 @@ const SignInWithGitHub = () => {
if (error) throw error
} catch (error) {
console.error(error)
} finally {
setLoading(false)
}
}
@@ -44,7 +43,8 @@ const SignInWithGitHub = () => {
<Button
block
onClick={handleGithubSignIn}
icon={<IconGitHub width={18} height={18} />}
// set the width to 20 so that it matches the loading spinner and don't push the text when loading
icon={<IconGitHub width={20} height={18} />}
size="large"
type="default"
loading={loading}