-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix(website): offer to switch to right safe chain #1021
Conversation
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit e0e85f8. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
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.
in the video you shared, the button appears to un-disable after the switch chain is completed? Shouldnt it continue to be disabled/loading until its done?
also, can we turn this more or less repeated section of code into a helper function? I have a feeling we are going to be using similar pattern a lot.
26eb08f
to
a68de3e
Compare
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.
i still have an umber of things that I think could be improved about this, but we have to set this PRs stopping point somewhere.
@@ -380,12 +380,15 @@ export const QueuedTxns = ({ | |||
colorScheme="teal" | |||
w="100%" | |||
isDisabled={ | |||
stager.signing || |
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.
in accordance with showing a reason any time a button is disabled, can we put some indication somewhere... somehow on the page that says "currently signing txn" to indicate the button is disabled (maybe the user doenst realize their signing window was opened when they click on the button)
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 catch, sure, I'll add it ASAP, thank you
37105e6
to
e0e85f8
Compare
The main purpose of this PR is to offer the user to switch to the right chain before executing/staging any transaction
Screen.Recording.2024-05-17.at.8.35.42.AM.mov