Skip to content

Commit 7307b36

Browse files
Merge pull request #1413 from peanutprotocol/fix/improve-login-loading-animation
Fix: Improve login loading button
2 parents b1e99e9 + 92aa498 commit 7307b36

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/components/Invites/InvitesPage.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function InvitePageContent() {
9090
)}
9191
>
9292
<div className="mx-auto w-full md:max-w-xs">
93-
<div className="flex h-full flex-col justify-between gap-4 md:gap-10 md:pt-5">
93+
<div className="flex h-full flex-col justify-between gap-4 md:gap-6 md:pt-5">
9494
<h1 className="text-xl font-extrabold">{inviteCodeData?.username} invited you to Peanut</h1>
9595
<p className="text-base font-medium">
9696
Members-only access. Use this invite to open your wallet and start sending and receiving
@@ -101,9 +101,15 @@ function InvitePageContent() {
101101
</Button>
102102

103103
{!user?.user && (
104-
<button disabled={isLoggingIn} onClick={handleLoginClick} className="text-sm underline">
105-
{isLoggingIn ? 'Please wait...' : 'Already have an account? Log in!'}
106-
</button>
104+
<Button
105+
disabled={isLoggingIn}
106+
loading={isLoggingIn}
107+
variant="primary-soft"
108+
onClick={handleLoginClick}
109+
shadowSize="4"
110+
>
111+
Already have an account? Log in!
112+
</Button>
107113
)}
108114
</div>
109115
</div>

0 commit comments

Comments
 (0)