Skip to content

Commit 623223b

Browse files
authored
Merge pull request #2445 from pyth-network/devin/1741234702-update-featured-card
feat(insights): update Recently Added card to Featured
2 parents a5f46d7 + 0210b09 commit 623223b

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

apps/insights/src/components/PriceFeeds/index.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ArrowLineDown } from "@phosphor-icons/react/dist/ssr/ArrowLineDown";
22
import { ArrowSquareOut } from "@phosphor-icons/react/dist/ssr/ArrowSquareOut";
33
import { ArrowsOutSimple } from "@phosphor-icons/react/dist/ssr/ArrowsOutSimple";
44
import { ClockCountdown } from "@phosphor-icons/react/dist/ssr/ClockCountdown";
5-
import { StackPlus } from "@phosphor-icons/react/dist/ssr/StackPlus";
5+
import { Star } from "@phosphor-icons/react/dist/ssr/Star";
66
import { Badge } from "@pythnetwork/component-library/Badge";
77
import { Button } from "@pythnetwork/component-library/Button";
88
import {
@@ -48,9 +48,9 @@ export const PriceFeeds = async () => {
4848
!priceFeedsStaticConfig.featuredComingSoon.includes(symbol),
4949
),
5050
].slice(0, 6);
51-
const featuredRecentlyAdded = filterFeeds(
51+
const featuredFeeds = filterFeeds(
5252
priceFeeds.activeFeeds,
53-
priceFeedsStaticConfig.featuredRecentlyAdded,
53+
priceFeedsStaticConfig.featuredFeeds,
5454
);
5555

5656
return (
@@ -87,7 +87,7 @@ export const PriceFeeds = async () => {
8787
<FeaturedFeeds
8888
allComingSoon={priceFeeds.comingSoon}
8989
featuredComingSoon={featuredComingSoon.slice(0, 5)}
90-
featuredRecentlyAdded={featuredRecentlyAdded.slice(0, 5)}
90+
featuredFeeds={featuredFeeds.slice(0, 5)}
9191
/>
9292
<PriceFeedsCard
9393
id={PRICE_FEEDS_ANCHOR}
@@ -120,7 +120,7 @@ export const PriceFeeds = async () => {
120120
<FeaturedFeeds
121121
allComingSoon={priceFeeds.comingSoon}
122122
featuredComingSoon={featuredComingSoon}
123-
featuredRecentlyAdded={featuredRecentlyAdded}
123+
featuredFeeds={featuredFeeds}
124124
/>
125125
</UnstyledTabPanel>
126126
</UnstyledTabs>
@@ -129,29 +129,29 @@ export const PriceFeeds = async () => {
129129
};
130130

131131
type FeaturedFeedsProps = {
132-
featuredRecentlyAdded: FeaturedFeed[];
132+
featuredFeeds: FeaturedFeed[];
133133
featuredComingSoon: FeaturedFeed[];
134134
allComingSoon: { symbol: string }[];
135135
};
136136

137137
const FeaturedFeeds = ({
138-
featuredRecentlyAdded,
138+
featuredFeeds,
139139
featuredComingSoon,
140140
allComingSoon,
141141
}: FeaturedFeedsProps) => (
142142
<>
143143
<YesterdaysPricesProvider
144144
feeds={Object.fromEntries(
145-
featuredRecentlyAdded.map(({ symbol, product }) => [
145+
featuredFeeds.map(({ symbol, product }) => [
146146
symbol,
147147
product.price_account,
148148
]),
149149
)}
150150
>
151151
<FeaturedFeedsCard
152-
title="Recently Added"
153-
icon={<StackPlus />}
154-
feeds={featuredRecentlyAdded}
152+
title="Featured"
153+
icon={<Star />}
154+
feeds={featuredFeeds}
155155
showPrices
156156
linkFeeds
157157
/>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
export const priceFeeds = {
22
updateFrequency: "400ms",
3-
featuredRecentlyAdded: [
4-
"Crypto.PYTH/USD",
5-
"FX.EUR/USD",
6-
"Equity.US.NFLX/USD",
7-
"Commodities.WTI1M",
8-
"Crypto.1INCH/USD",
9-
"Equity.US.META/USD",
3+
featuredFeeds: [
4+
"Crypto.ARC/USD",
5+
"Crypto.CDXUSD/USD",
6+
"Equity.GB.CSPX/USD",
7+
"Crypto.MSUSD/USD",
8+
"Crypto.WSTHYPE/STHYPE.RR",
9+
"Crypto.YNETHX/WETH.RR",
1010
],
1111
featuredComingSoon: ["Rates.US1Y"],
1212
};

0 commit comments

Comments
 (0)