Skip to content

Commit

Permalink
fixup! feat(suite): add timer to solana tx modal
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklim committed Feb 26, 2025
1 parent c892e03 commit 14a4517
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ export const TransactionReviewOutputTimer = ({
</Button>
<Badge variant="warning">
<TimerBox>
<CountdownTimer
deadline={deadline}
unitDisplay="narrow"
message="TR_TX_CONFIRMATION_TIMER_SHORT"
pastDeadlineMessage={
isSending ? 'TR_CONFIRMING_TX' : 'TR_TX_SEND_FAILED_TITLE'
}
/>
{isSending ? (
<Translation id="TR_CONFIRMING_TX" />
) : (
<CountdownTimer
deadline={deadline}
unitDisplay="narrow"
message="TR_TX_CONFIRMATION_TIMER_SHORT"
pastDeadlineMessage="TR_TX_SEND_FAILED_TITLE"
/>
)}
</TimerBox>
</Badge>
</>
Expand Down

0 comments on commit 14a4517

Please sign in to comment.