feat: add copy button on token description#48
Open
astowny wants to merge 1 commit intominima-global:mainfrom
Open
feat: add copy button on token description#48astowny wants to merge 1 commit intominima-global:mainfrom
astowny wants to merge 1 commit intominima-global:mainfrom
Conversation
Add the copy prop to the description InfoBox on the token detail page, allowing users to copy the token description to clipboard with one tap. This applies to both custom tokens (copies the token's description field) and the native Minima token (copies the default description text). Consistent with the existing copy behavior on token ID, web validation URL, and external URL fields.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a copy to clipboard button on the token description field in the token detail page (
/balance/$id).Before
The description field had no copy button — users had to manually select and copy the text.
After
A copy icon appears on the right side of the description field (same as token ID, web validation URL, etc.). Tapping it copies the description to the clipboard.
Details
no_descriptionfallback)0x00): the copy button is always shown (copies the default description text)copyprop on theInfoBoxcomponent — no new code needed, just enabling the featureFiles Changed
src/routes/balance/$id.tsx— Addedcopyprop to descriptionInfoBoxcomponents