-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TACo commitment checks and alerts when topping up or de-authing #724
base: main
Are you sure you want to change the base?
Conversation
Preview uploaded to https://preview.dashboard.test.threshold.network/topup/index.html. |
1 similar comment
Preview uploaded to https://preview.dashboard.test.threshold.network/topup/index.html. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, hopefully not many stakers will use this facility anytime soon!
src/pages/Staking/AuthorizeStakingApps/AuthorizeApplicationsCardCheckbox/index.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Arjun Hassard <[email protected]>
Preview uploaded to https://preview.dashboard.test.threshold.network/topup/index.html. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment:
(Number(endCommitment) ?? 0) * 1000 | ||
).toLocaleDateString() | ||
if (isCommited) { | ||
alert(`You are still committed until ${endCommitmentDate}.`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you consider using Toast component
here?
Native browser alert doesn't look good and dffers in behaviour in various browsers.
Preview uploaded to https://preview.dashboard.test.threshold.network/topup/index.html. |
Builds on top of #723