Skip to content

Commit 68aa277

Browse files
committed
chore: update StablecoinAccordion default image width
1 parent 7bc855e commit 68aa277

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

src/components/StablecoinAccordion/index.tsx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ const StablecoinAccordion: React.FC = () => {
104104
const { cardListGroups } = useStablecoinAccordion()
105105
const { t } = useTranslation("page-stablecoins")
106106

107+
// Overrides CardList default image width
108+
const DEFAULT_IMAGE_WIDTH = 24
109+
107110
return (
108111
<Accordion borderRadius="base" width="full" allowToggle reduceMotion>
109112
<AccordionCustomItem category="dapps">
@@ -141,7 +144,10 @@ const StablecoinAccordion: React.FC = () => {
141144
{t("page-stablecoins-accordion-swap-dapp-link")}
142145
</InlineLink>
143146
</p>
144-
<CardList items={cardListGroups.dapps} />
147+
<CardList
148+
items={cardListGroups.dapps}
149+
imageWidth={DEFAULT_IMAGE_WIDTH}
150+
/>
145151
</RightColumnPanel>
146152
</AccordionCustomItem>
147153
<AccordionCustomItem category="buy">
@@ -167,7 +173,10 @@ const StablecoinAccordion: React.FC = () => {
167173
<SectionTitle>
168174
{t("page-stablecoins-accordion-buy-exchanges-title")}
169175
</SectionTitle>
170-
<CardList items={cardListGroups.exchanges} />
176+
<CardList
177+
items={cardListGroups.exchanges}
178+
imageWidth={DEFAULT_IMAGE_WIDTH}
179+
/>
171180
</RightColumnPanel>
172181
</AccordionCustomItem>
173182
<AccordionCustomItem category="earn">
@@ -189,7 +198,10 @@ const StablecoinAccordion: React.FC = () => {
189198
{t("page-stablecoins-accordion-earn-projects-title")}
190199
</SectionTitle>
191200
<p>{t("page-stablecoins-accordion-earn-projects-copy")}</p>
192-
<CardList items={cardListGroups.earn} />
201+
<CardList
202+
items={cardListGroups.earn}
203+
imageWidth={DEFAULT_IMAGE_WIDTH}
204+
/>
193205
</RightColumnPanel>
194206
</AccordionCustomItem>
195207
<AccordionCustomItem category="generate">
@@ -231,7 +243,10 @@ const StablecoinAccordion: React.FC = () => {
231243
</SectionTitle>
232244
<p>{t("page-stablecoins-accordion-borrow-places-intro")}</p>
233245
<Box mb={8}>
234-
<CardList items={cardListGroups.borrow} />
246+
<CardList
247+
items={cardListGroups.borrow}
248+
imageWidth={DEFAULT_IMAGE_WIDTH}
249+
/>
235250
</Box>
236251
<SectionTitle>
237252
{t("page-stablecoins-accordion-borrow-risks-title")}

0 commit comments

Comments
 (0)