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

feat: address tooltip #1188

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: address tooltip #1188

wants to merge 1 commit into from

Conversation

RobChangCA
Copy link
Collaborator

@RobChangCA RobChangCA commented Dec 4, 2024

Pull Request Checklist

On hover
Screenshot 2024-12-04 at 11 53 01 AM
When clicked:
Screenshot 2024-12-04 at 11 54 10 AM


PR-Codex overview

This PR refactors the UserAddressLink component to enhance its functionality by integrating tooltips for better user feedback and removing the dependency on useConnection. It allows users to copy an address to the clipboard with a confirmation message.

Detailed summary

  • Removed useConnection and related logic.
  • Added useState for managing tooltip visibility and copied state.
  • Replaced the anchor tag with a button wrapped in a TooltipProvider.
  • Implemented handleClick to copy the address and show a "Copied!" message.
  • Updated rendering to include Tooltip, TooltipTrigger, and TooltipContent.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Dec 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2025 8:19pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2025 8:19pm

Copy link

graphite-app bot commented Dec 4, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “graphite-merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants