Skip to content

Commit

Permalink
Update ExtendButton text to show "Transaction pending..." during load…
Browse files Browse the repository at this point in the history
…ing state
  • Loading branch information
Yoginth committed Sep 25, 2024
1 parent ecff0ba commit 0404dcf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/src/components/Pro/ExtendButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ const ExtendButton: FC<ExtendButtonProps> = ({ size = "lg" }) => {
size={size}
disabled={isLoading || transactionLoading}
>
{isPro ? "Extend Pro" : "Upgrade to Pro"}
{transactionLoading
? "Transaction pending..."
: isPro
? "Extend Pro"
: "Upgrade to Pro"}
</Button>
<Modal
onClose={() => setShowUpgradeModal(false)}
Expand Down

0 comments on commit 0404dcf

Please sign in to comment.