Skip to content

Commit 9da483f

Browse files
committed
cleanup
1 parent 7ab3b54 commit 9da483f

File tree

6 files changed

+33
-16
lines changed

6 files changed

+33
-16
lines changed

src/components/HorizontalCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ const HorizontalCard = ({
2323
...props
2424
}: HorizontalCardProps) => {
2525
return (
26-
<div className={cn("my-2 flex items-start gap-8", className)} {...props}>
26+
<div className={cn("flex items-center gap-8", className)} {...props}>
2727
<Emoji text={emoji} className={cn("text-5xl", emojiClassName)} />
2828
<div className="flex-shrink flex-grow-0 basis-3/4 space-y-2">
2929
<p className="text-lg">{title}</p>
30-
<p className="text-base">{description}</p>
30+
<p>{description}</p>
3131
{children}
3232
</div>
3333
</div>

src/data/wallets/wallet-data.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import BridgeWalletImage from "@/public/images/wallets/bridge.png"
1313
import ClearWallet from "@/public/images/wallets/clearwallet.png"
1414
import CoinbaseImage from "@/public/images/wallets/coinbase.png"
1515
import CoinWalletImage from "@/public/images/wallets/coinwallet.png"
16-
import CypherockX1Image from "@/public/images/wallets/cypherockx1.png"
1716
import CtrlWalletImage from "@/public/images/wallets/ctrl.png"
17+
import CypherockX1Image from "@/public/images/wallets/cypherockx1.png"
1818
import EnkryptImage from "@/public/images/wallets/enkrypt.png"
1919
import ExodusImage from "@/public/images/wallets/exodus.png"
2020
import FoxWalletImage from "@/public/images/wallets/foxwallet.png"
@@ -1546,7 +1546,20 @@ export const walletsData: WalletData[] = [
15461546
twGradiantBrandColor: "from-[#ffffff]",
15471547
url: "https://web3.bitget.com/",
15481548
active_development_team: true,
1549-
languages_supported: ["en", "zh","zh-tw", "ko", "ja", "vi", "tr", "es", "id", "hi", "ar", "pt"],
1549+
languages_supported: [
1550+
"en",
1551+
"zh",
1552+
"zh-tw",
1553+
"ko",
1554+
"ja",
1555+
"vi",
1556+
"tr",
1557+
"es",
1558+
"id",
1559+
"hi",
1560+
"ar",
1561+
"pt",
1562+
],
15501563
twitter: "https://twitter.com/BitgetWallet",
15511564
discord: "https://discord.gg/bitget-wallet",
15521565
reddit: "",
@@ -2140,8 +2153,8 @@ export const walletsData: WalletData[] = [
21402153
social_recovery: false,
21412154
onboard_documentation: "https://www.cypherock.com",
21422155
documentation: "https://github.com/Cypherock/x1_wallet_firmware",
2143-
},
2144-
{
2156+
},
2157+
{
21452158
last_updated: "2024-10-31",
21462159
name: "Clear Wallet",
21472160
image: ClearWallet,
@@ -2177,7 +2190,7 @@ export const walletsData: WalletData[] = [
21772190
layer_2: true,
21782191
gas_fee_customization: true,
21792192
ens_support: false,
2180-
erc_20_support: true,
2193+
erc_20_support: true,
21812194
buy_crypto: false,
21822195
withdraw_crypto: false,
21832196
multisig: false,

src/pages/eth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ const CardContainer = (props: FlexProps) => (
215215
const TokenCard = (props: ComponentProps<typeof HorizontalCard>) => (
216216
<HorizontalCard
217217
className={cn("mx-0 my-2 min-w-full rounded-none", props.className)}
218+
emojiClassName="text-[5rem]"
218219
{...props}
219220
/>
220221
)
@@ -557,7 +558,6 @@ const EthPage = () => {
557558
emoji={token.emoji}
558559
title={token.title}
559560
description={token.description}
560-
className="text-[5rem]"
561561
/>
562562
))}
563563
</RightColumn>

src/pages/gas.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ const GasPage = () => {
298298
key={benefit.emoji}
299299
emoji={benefit.emoji}
300300
description={benefit.description}
301-
className="flex items-center"
302301
/>
303302
</Box>
304303
))}

src/pages/stablecoins.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,12 @@ const StablecoinsPage = ({ markets, marketsHasError }) => {
456456
me={{ base: 0, lg: 8 }}
457457
mb={8}
458458
>
459-
<Box w="full" margin={{ base: "auto 0", lg: "0 2rem 0" }}>
459+
<Flex
460+
w="full"
461+
margin={{ base: "auto 0", lg: "0 2rem 0" }}
462+
direction="column"
463+
gap={2}
464+
>
460465
{tokens.map((token, index) => (
461466
<Box key={index} minWidth="full" my={2}>
462467
<HorizontalCard
@@ -465,7 +470,7 @@ const StablecoinsPage = ({ markets, marketsHasError }) => {
465470
/>
466471
</Box>
467472
))}
468-
</Box>
473+
</Flex>
469474
<GhostCard className="me-0 mt-16 max-w-[640px] lg:me-8 lg:mt-2">
470475
<Emoji text=":pizza:" className="text-5xl" />
471476
<H3>{t("page-stablecoins-bitcoin-pizza")}</H3>

src/pages/wallets/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const StyledCard = (props: ComponentPropsWithRef<typeof Card>) => (
118118
const ChecklistItem = (props: HorizontalCardProps) => (
119119
<HorizontalCard
120120
emojiClassName="text-2xl"
121-
className="flex-start mb-4 flex border-0"
121+
className="items-start"
122122
{...props}
123123
/>
124124
)
@@ -356,13 +356,13 @@ const WalletsPage = () => {
356356
<RightColumn mt={{ base: 12, lg: 0 }}>
357357
<H2>{t("page-wallets-types")}</H2>
358358
<Text>{t("page-wallets-types-desc")}</Text>
359-
<Box>
359+
<Box className="flex flex-col gap-2">
360360
{types.map((type, idx) => (
361361
<HorizontalCard
362362
key={idx}
363363
emoji={type.emoji}
364364
description={type.description}
365-
className="my-0.5 w-[100%] items-center"
365+
className="my-0.5 w-[100%]"
366366
emojiClassName="text-[2.5rem]"
367367
/>
368368
))}
@@ -439,7 +439,7 @@ const WalletsPage = () => {
439439
<Box lineHeight={1.4} mb={6} color="text300">
440440
<Translation id="page-wallets:page-wallets-stay-safe-desc" />
441441
</Box>
442-
<Box>
442+
<Flex direction="column" gap={4}>
443443
<ChecklistItem
444444
key="0"
445445
emoji=":white_check_mark:"
@@ -472,7 +472,7 @@ const WalletsPage = () => {
472472
title={t("page-wallets-triple-check")}
473473
description={t("page-wallets-triple-check-desc")}
474474
/>
475-
</Box>
475+
</Flex>
476476
</LeftColumn>
477477
<RightColumn mt={{ base: 12, lg: 0 }}>
478478
<H2>{t("page-wallets-tips")}</H2>

0 commit comments

Comments
 (0)