@@ -23,6 +23,7 @@ import { YesterdaysPricesProvider, ChangePercent } from "../ChangePercent";
23
23
import { LivePrice } from "../LivePrices" ;
24
24
import { PriceFeedIcon } from "../PriceFeedIcon" ;
25
25
import { PriceFeedTag } from "../PriceFeedTag" ;
26
+ import { Stats } from "../Stats" ;
26
27
27
28
const PRICE_FEEDS_ANCHOR = "priceFeeds" ;
28
29
@@ -48,7 +49,7 @@ export const PriceFeeds = async () => {
48
49
< div className = { styles . priceFeeds } >
49
50
< h1 className = { styles . header } > Price Feeds</ h1 >
50
51
< div className = { styles . body } >
51
- < section className = { styles . stats } >
52
+ < Stats >
52
53
< StatCard
53
54
variant = "primary"
54
55
header = "Active Feeds"
@@ -74,7 +75,7 @@ export const PriceFeeds = async () => {
74
75
corner = { < Info weight = "fill" /> }
75
76
/>
76
77
</ AssetClassesDrawer >
77
- </ section >
78
+ </ Stats >
78
79
< YesterdaysPricesProvider
79
80
feeds = { Object . fromEntries (
80
81
featuredRecentlyAdded . map ( ( { symbol, product } ) => [
@@ -165,32 +166,34 @@ const FeaturedFeedsCard = <T extends ElementType>({
165
166
} : FeaturedFeedsCardProps < T > ) => (
166
167
< Card { ...props } >
167
168
< div className = { styles . featuredFeeds } >
168
- { feeds . map ( ( feed ) => (
169
- < Card
170
- key = { feed . product . price_account }
171
- variant = "tertiary"
172
- { ...( linkFeeds && {
173
- href : `/price-feeds/${ encodeURIComponent ( feed . symbol ) } ` ,
174
- } ) }
175
- >
176
- < div className = { styles . feedCardContents } >
177
- < PriceFeedTag
178
- symbol = { feed . product . display_symbol }
179
- description = { feed . product . description }
180
- icon = { < PriceFeedIcon symbol = { feed . product . display_symbol } /> }
181
- />
182
- { showPrices && (
183
- < div className = { styles . prices } >
184
- < LivePrice feedKey = { feed . product . price_account } />
185
- < ChangePercent
186
- className = { styles . changePercent }
187
- feedKey = { feed . product . price_account }
188
- />
189
- </ div >
190
- ) }
191
- </ div >
192
- </ Card >
193
- ) ) }
169
+ < Stats >
170
+ { feeds . map ( ( feed ) => (
171
+ < Card
172
+ key = { feed . product . price_account }
173
+ variant = "tertiary"
174
+ { ...( linkFeeds && {
175
+ href : `/price-feeds/${ encodeURIComponent ( feed . symbol ) } ` ,
176
+ } ) }
177
+ >
178
+ < div className = { styles . feedCardContents } >
179
+ < PriceFeedTag
180
+ symbol = { feed . product . display_symbol }
181
+ description = { feed . product . description }
182
+ icon = { < PriceFeedIcon symbol = { feed . product . display_symbol } /> }
183
+ />
184
+ { showPrices && (
185
+ < div className = { styles . prices } >
186
+ < LivePrice feedKey = { feed . product . price_account } />
187
+ < ChangePercent
188
+ className = { styles . changePercent }
189
+ feedKey = { feed . product . price_account }
190
+ />
191
+ </ div >
192
+ ) }
193
+ </ div >
194
+ </ Card >
195
+ ) ) }
196
+ </ Stats >
194
197
</ div >
195
198
</ Card >
196
199
) ;
0 commit comments