mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
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:
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}
|
||||
|
||||
Reference in new issue
Block a user