Skip to content

Commit 02f1720

Browse files
committed
feat: Remove cryptocurrency-icons
1 parent b914d46 commit 02f1720

File tree

19 files changed

+15
-1096
lines changed

19 files changed

+15
-1096
lines changed

apps/api-reference/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"bs58": "catalog:",
3333
"clsx": "catalog:",
3434
"connectkit": "catalog:",
35-
"cryptocurrency-icons": "catalog:",
3635
"framer-motion": "catalog:",
3736
"next": "catalog:",
3837
"next-themes": "catalog:",

apps/api-reference/src/apis/evm/get-update-fee.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import Btc from "cryptocurrency-icons/svg/color/btc.svg";
2-
import Eth from "cryptocurrency-icons/svg/color/eth.svg";
3-
41
import {
52
readApi,
63
BTCUSD,
@@ -34,12 +31,10 @@ export const getUpdateFee = readApi<"updateData">({
3431
examples: [
3532
{
3633
name: "Latest BTC/USD update data",
37-
icon: Btc,
3834
parameters: () => getParams(BTCUSD),
3935
},
4036
{
4137
name: "Latest ETH/USD update data",
42-
icon: Eth,
4338
parameters: () => getParams(ETHUSD),
4439
},
4540
],

apps/api-reference/src/apis/evm/parse-price-feed-updates-unique.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import Btc from "cryptocurrency-icons/svg/color/btc.svg";
2-
import Eth from "cryptocurrency-icons/svg/color/eth.svg";
3-
41
import {
52
BTCUSD,
63
ETHUSD,
@@ -85,12 +82,10 @@ export const parsePriceFeedUpdatesUnique = writeApi<
8582
examples: [
8683
{
8784
name: "Latest BTC/USD update data",
88-
icon: Btc,
8985
parameters: (ctx) => getParams(BTCUSD, ctx),
9086
},
9187
{
9288
name: "Latest ETH/USD update data",
93-
icon: Eth,
9489
parameters: (ctx) => getParams(ETHUSD, ctx),
9590
},
9691
],

apps/api-reference/src/apis/evm/parse-price-feed-updates.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import Btc from "cryptocurrency-icons/svg/color/btc.svg";
2-
import Eth from "cryptocurrency-icons/svg/color/eth.svg";
3-
41
import {
52
BTCUSD,
63
ETHUSD,
@@ -80,12 +77,10 @@ export const parsePriceFeedUpdates = writeApi<
8077
examples: [
8178
{
8279
name: "Latest BTC/USD update data",
83-
icon: Btc,
8480
parameters: (ctx) => getParams(BTCUSD, ctx),
8581
},
8682
{
8783
name: "Latest ETH/USD update data",
88-
icon: Eth,
8984
parameters: (ctx) => getParams(ETHUSD, ctx),
9085
},
9186
],

apps/api-reference/src/apis/evm/update-price-feeds-if-necessary.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import Btc from "cryptocurrency-icons/svg/color/btc.svg";
2-
import Eth from "cryptocurrency-icons/svg/color/eth.svg";
3-
41
import {
52
BTCUSD,
63
ETHUSD,
@@ -75,12 +72,10 @@ export const updatePriceFeedsIfNecessary = writeApi<
7572
examples: [
7673
{
7774
name: "Latest BTC/USD update data",
78-
icon: Btc,
7975
parameters: (ctx) => getParams(BTCUSD, ctx),
8076
},
8177
{
8278
name: "Latest ETH/USD update data",
83-
icon: Eth,
8479
parameters: (ctx) => getParams(ETHUSD, ctx),
8580
},
8681
],

apps/api-reference/src/apis/evm/update-price-feeds.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import Btc from "cryptocurrency-icons/svg/color/btc.svg";
2-
import Eth from "cryptocurrency-icons/svg/color/eth.svg";
3-
41
import {
52
BTCUSD,
63
ETHUSD,
@@ -54,12 +51,10 @@ export const updatePriceFeeds = writeApi<"updateData" | "fee">({
5451
examples: [
5552
{
5653
name: "Latest BTC/USD update data",
57-
icon: Btc,
5854
parameters: (ctx) => getParams(BTCUSD, ctx),
5955
},
6056
{
6157
name: "Latest ETH/USD update data",
62-
icon: Eth,
6358
parameters: (ctx) => getParams(ETHUSD, ctx),
6459
},
6560
],

apps/insights/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"async-cache-dedupe": "catalog:",
3232
"bs58": "catalog:",
3333
"clsx": "catalog:",
34-
"cryptocurrency-icons": "catalog:",
3534
"date-fns": "catalog:",
3635
"csv-stringify": "catalog:",
3736
"dnum": "catalog:",

apps/insights/src/components/PriceFeed/header.tsx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,7 @@ const PriceFeedHeaderImpl = (props: PriceFeedHeaderImplProps) => (
8484
description: item.product.description,
8585
displaySymbol: item.product.display_symbol,
8686
key: item.product.price_account,
87-
icon: (
88-
<PriceFeedIcon
89-
assetClass={item.product.asset_type}
90-
symbol={item.symbol}
91-
/>
92-
),
87+
icon: <PriceFeedIcon assetClass={item.product.asset_type} />,
9388
})),
9489
})}
9590
>
@@ -100,10 +95,7 @@ const PriceFeedHeaderImpl = (props: PriceFeedHeaderImplProps) => (
10095
description: props.feed.product.description,
10196
displaySymbol: props.feed.product.display_symbol,
10297
icon: (
103-
<PriceFeedIcon
104-
assetClass={props.feed.product.asset_type}
105-
symbol={props.feed.symbol}
106-
/>
98+
<PriceFeedIcon assetClass={props.feed.product.asset_type} />
10799
),
108100
})}
109101
/>
@@ -116,10 +108,7 @@ const PriceFeedHeaderImpl = (props: PriceFeedHeaderImplProps) => (
116108
description: props.feed.product.description,
117109
displaySymbol: props.feed.product.display_symbol,
118110
icon: (
119-
<PriceFeedIcon
120-
assetClass={props.feed.product.asset_type}
121-
symbol={props.feed.symbol}
122-
/>
111+
<PriceFeedIcon assetClass={props.feed.product.asset_type} />
123112
),
124113
})}
125114
/>

0 commit comments

Comments
 (0)