-
Notifications
You must be signed in to change notification settings - Fork 302
feat: Remove cryptocurrency-icons #3137
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,12 +84,7 @@ const PriceFeedHeaderImpl = (props: PriceFeedHeaderImplProps) => ( | |
| description: item.product.description, | ||
| displaySymbol: item.product.display_symbol, | ||
| key: item.product.price_account, | ||
| icon: ( | ||
| <PriceFeedIcon | ||
| assetClass={item.product.asset_type} | ||
| symbol={item.symbol} | ||
| /> | ||
| ), | ||
| icon: <PriceFeedIcon assetClass={item.product.asset_type} />, | ||
| })), | ||
| })} | ||
| > | ||
|
|
@@ -100,10 +95,7 @@ const PriceFeedHeaderImpl = (props: PriceFeedHeaderImplProps) => ( | |
| description: props.feed.product.description, | ||
| displaySymbol: props.feed.product.display_symbol, | ||
| icon: ( | ||
| <PriceFeedIcon | ||
| assetClass={props.feed.product.asset_type} | ||
| symbol={props.feed.symbol} | ||
| /> | ||
| <PriceFeedIcon assetClass={props.feed.product.asset_type} /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: I see const priceFeedIcon = <PriceFeedIcon assetClass={props.feed.product.asset_type} />
// then, later, down below
icon: priceFeedIconThis way, if we need to change this component for whatever reason, we only need to change it in one place 🙂 |
||
| ), | ||
| })} | ||
| /> | ||
|
|
@@ -116,10 +108,7 @@ const PriceFeedHeaderImpl = (props: PriceFeedHeaderImplProps) => ( | |
| description: props.feed.product.description, | ||
| displaySymbol: props.feed.product.display_symbol, | ||
| icon: ( | ||
| <PriceFeedIcon | ||
| assetClass={props.feed.product.asset_type} | ||
| symbol={props.feed.symbol} | ||
| /> | ||
| <PriceFeedIcon assetClass={props.feed.product.asset_type} /> | ||
| ), | ||
| })} | ||
| /> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.