Skip to content

Commit 6e81bbe

Browse files
committed
fix HorizontalCard
1 parent eed3ebf commit 6e81bbe

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

src/components/HorizontalCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React, { ReactNode } from "react"
22
import { Box, Flex, FlexProps } from "@chakra-ui/react"
33

4+
import { cn } from "@/lib/utils/cn"
5+
46
import Emoji from "./Emoji"
57
import Text from "./OldText"
68

@@ -15,10 +17,11 @@ const HorizontalCard = ({
1517
title,
1618
description,
1719
children,
20+
className,
1821
...rest
1922
}: HorizontalCardProps) => (
2023
<Flex borderRadius="base" {...rest}>
21-
<Emoji className="text-5xl" text={emoji} />
24+
<Emoji className={cn("text-5xl", className)} text={emoji} />
2225
<Box flexGrow="0" flexShrink="1" flexBasis="75%" ms="8">
2326
<Text fontSize="lg">{title}</Text>
2427
<Text mt="-4" mb="2">

src/pages/eth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ const EthPage = () => {
558558
emoji={token.emoji}
559559
title={token.title}
560560
description={token.description}
561-
emojiSize={5}
561+
className="text-[5rem]"
562562
/>
563563
))}
564564
</RightColumn>

src/pages/gas.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ const GasPage = () => {
306306
key={benefit.emoji}
307307
emoji={benefit.emoji}
308308
description={benefit.description}
309-
emojiSize={3}
309+
className="text-5xl"
310310
align="center"
311311
/>
312312
</Box>

src/pages/stablecoins.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ const StablecoinsPage = ({ markets, marketsHasError }) => {
458458
<HorizontalCard
459459
emoji={token.emoji}
460460
description={token.description}
461-
emojiSize={3}
461+
className="text-5xl"
462462
/>
463463
</Box>
464464
))}

src/pages/wallets/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const ChecklistItem = (props: HorizontalCardProps) => (
118118
<HorizontalCard
119119
border={0}
120120
display="flex"
121-
emojiSize={1.5}
121+
className="text-2xl"
122122
alignItems="flex-start"
123123
mb={4}
124124
{...props}
@@ -352,7 +352,7 @@ const WalletsPage = () => {
352352
key={idx}
353353
emoji={type.emoji}
354354
description={type.description}
355-
emojiSize={2.5}
355+
className="text-[2.5rem]"
356356
alignItems="center"
357357
/>
358358
))}

0 commit comments

Comments
 (0)