Skip to content
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 visual feedback to tx share button #3298

Merged
merged 4 commits into from
Feb 20, 2024
Merged

Add copy visual feedback to tx share button #3298

merged 4 commits into from
Feb 20, 2024

Conversation

daniel0ar
Copy link
Contributor

@daniel0ar daniel0ar commented Feb 20, 2024

What it solves

Resolves #3283

How this PR fixes it

It uses the existing CopyTooltip common compoent inside the TxShareLink component.

How to test it

Open http://localhost:3000/transactions/tx?safe=oeth:0x773D7c58941295aF412092efF5Aa3d188525e81a&id=multisig_0x773D7c58941295aF412092efF5Aa3d188525e81a_0x96afb4ae2fc570f3c52f53f820556a430b23ffc610f108d9e549fcf64c99ee3f and click on the Share button

Screenshots

image

Checklist

  • Wrapped the Share IconButton with the CopyTooltip component
  • Passed the url to the tooltip component as text prop
  • Removed onCopy action (the tooltip component copies the text passed)

Note: At first I added a new ExportTooltip component, then realized it was not necesarry unless the share button changes its action functionality (i.e: doing something other than copying tx url), so reverted first commit and used existing Copytooltip component

Copy link

github-actions bot commented Feb 20, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@daniel0ar
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Member

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you!

@katspaugh katspaugh merged commit dd884a0 into safe-global:dev Feb 20, 2024
2 of 12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No visual feedback when clicking on the Tx Share button
2 participants