-
Notifications
You must be signed in to change notification settings - Fork 5k
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 Copy Tx ID button to transaction-list-item-details #6146
Conversation
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.
One small thing
|
||
this.setState({ justCopied: true }, () => copyToClipboard(hash)) | ||
|
||
setTimeout(() => this.setState({ justCopied: false }), 1000) |
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.
Should we move this into the callback for the above setState
call? We'd want this to run after the copy?
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.
yea make sense, i will move it
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.
updated
LGTM @chikeichan -- does this work out okay when we're also showing the "Cancel" and "Speed Up" buttons? |
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 think this is good to go, once Whymarrh's comment is addressed.
@bdresser @cjeria
See attached gif. I added a "copy to clipboard" to tx detail for user to copy their tx id. I thought this fits the existing UX better than adding another component showing the tx hash. What do you think?