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

[ECO-2513] Add explorer link to market page #419

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

[ECO-2513] Add explorer link to market page #419

wants to merge 4 commits into from

Conversation

CRBl69
Copy link
Collaborator

@CRBl69 CRBl69 commented Nov 27, 2024

Description

This PR adds a link to the coin page by clicking on the big emoji on the market page.

@CRBl69 CRBl69 requested a review from alnoki November 27, 2024 14:45
Copy link

vercel bot commented Nov 27, 2024

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

Name Status Preview Comments Updated (UTC)
emojicoin-dot-fun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 5:26pm
emojicoin-dot-fun-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 5:26pm

href={explorerLink}
target="_blank"
>
{data.marketView.metadata.marketAddress.replace(/^0x(....).*(....)$/, "0x$1...$2")}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
{data.marketView.metadata.marketAddress.replace(/^0x(....).*(....)$/, "0x$1...$2")}
{data.marketView.metadata.marketAddress.replace(/^(0x)?(....).*(....)$/, "0x$2...$3")}

Move this logic to truncateAddress and call truncateAddress here

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.

3 participants