Skip to content

Conversation

fhqvst
Copy link
Contributor

@fhqvst fhqvst commented Oct 15, 2025

Summary

In this PR we remove the cryptocurrency-icons package completely, so to only use the more generic asset-specific icons.

Rationale

There have been asks to update some of the currency icons, but it is difficult for us to keep them all up to date, which is why we'd rather use the generic icons instead.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@linear
Copy link

linear bot commented Oct 15, 2025

@vercel
Copy link

vercel bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
api-reference Ready Ready Preview Comment Oct 15, 2025 3:21pm
component-library Ready Ready Preview Comment Oct 15, 2025 3:21pm
developer-hub Ready Ready Preview Comment Oct 15, 2025 3:21pm
entropy-explorer Ready Ready Preview Comment Oct 15, 2025 3:21pm
insights Ready Ready Preview Comment Oct 15, 2025 3:21pm
proposals Ready Ready Preview Comment Oct 15, 2025 3:21pm
staking Ready Ready Preview Comment Oct 15, 2025 3:21pm

assetClass={props.feed.product.asset_type}
symbol={props.feed.symbol}
/>
<PriceFeedIcon assetClass={props.feed.product.asset_type} />
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I see <PriceFeedIcon assetClass={props.feed.product.asset_type} /> in a lot of places. We could consider keeping things DRY and hoisting this up to a variable, since it seems it's most the same implementation everywhere:

const priceFeedIcon = <PriceFeedIcon assetClass={props.feed.product.asset_type} />

// then, later, down below
icon: priceFeedIcon

This way, if we need to change this component for whatever reason, we only need to change it in one place 🙂

@fhqvst fhqvst merged commit e376b1a into main Oct 21, 2025
10 checks passed
@fhqvst fhqvst deleted the fhqvst/ui-275-remove-cryptocurrency-icons branch October 21, 2025 08:48
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