Skip to content

Commit 72443ad

Browse files
fix(insights): rename featuredFeeds variable to feeds
Co-Authored-By: Connor Prussin <[email protected]>
1 parent 6b642b6 commit 72443ad

File tree

1 file changed

+6
-9
lines changed
  • apps/insights/src/components/PriceFeeds

1 file changed

+6
-9
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const PriceFeeds = async () => {
8787
<FeaturedFeeds
8888
allComingSoon={priceFeeds.comingSoon}
8989
featuredComingSoon={featuredComingSoon.slice(0, 5)}
90-
featuredFeeds={featuredFeeds.slice(0, 5)}
90+
feeds={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-
featuredFeeds={featuredFeeds}
123+
feeds={featuredFeeds}
124124
/>
125125
</UnstyledTabPanel>
126126
</UnstyledTabs>
@@ -129,29 +129,26 @@ export const PriceFeeds = async () => {
129129
};
130130

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

137137
const FeaturedFeeds = ({
138-
featuredFeeds,
138+
feeds,
139139
featuredComingSoon,
140140
allComingSoon,
141141
}: FeaturedFeedsProps) => (
142142
<>
143143
<YesterdaysPricesProvider
144144
feeds={Object.fromEntries(
145-
featuredFeeds.map(({ symbol, product }) => [
146-
symbol,
147-
product.price_account,
148-
]),
145+
feeds.map(({ symbol, product }) => [symbol, product.price_account]),
149146
)}
150147
>
151148
<FeaturedFeedsCard
152149
title="Featured"
153150
icon={<Star />}
154-
feeds={featuredFeeds}
151+
feeds={feeds}
155152
showPrices
156153
linkFeeds
157154
/>

0 commit comments

Comments
 (0)