Skip to content

Commit cbbbb82

Browse files
committed
remove card containers
1 parent 2b6fe69 commit cbbbb82

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

src/pages/wallets/index.tsx

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@ import { GetStaticProps } from "next"
33
import { useRouter } from "next/router"
44
import { useTranslation } from "next-i18next"
55
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
6-
import {
7-
Box,
8-
type BoxProps,
9-
Flex,
10-
Heading,
11-
Text as ChakraText,
12-
} from "@chakra-ui/react"
6+
import { Box, Flex, Heading, Text as ChakraText } from "@chakra-ui/react"
137

14-
import { BasePageProps, ChildOnlyProp, Lang } from "@/lib/types"
8+
import { BasePageProps, Lang } from "@/lib/types"
159

1610
import ButtonLink from "@/components/Buttons/ButtonLink"
1711
import Callout from "@/components/Callout"
@@ -44,10 +38,6 @@ import ETHImage from "@/public/images/eth-logo.png"
4438
import FindWalletImage from "@/public/images/wallets/find-wallet.png"
4539
import HeroImage from "@/public/images/wallets/wallet-hero.png"
4640

47-
const CardContainer = (props: BoxProps) => (
48-
<Box display={"flex"} flexWrap={"wrap"} ms={-4} me={-4} {...props} />
49-
)
50-
5141
export const StyledCard = (props: ComponentPropsWithRef<typeof Card>) => (
5242
<Card
5343
flex="1 1 30%"
@@ -66,10 +56,6 @@ const ChecklistItem = (props: HorizontalCardProps) => (
6656
/>
6757
)
6858

69-
const CalloutCardContainer = (props: ChildOnlyProp) => (
70-
<CardContainer mt={16} {...props} />
71-
)
72-
7359
export const getStaticProps = (async ({ locale }) => {
7460
const lastDeployDate = getLastDeployDate()
7561
const lastDeployLocaleTimestamp = getLocaleTimestamp(
@@ -265,7 +251,7 @@ const WalletsPage = () => {
265251
</div>
266252
</div>
267253
<div className="w-full px-8 py-4">
268-
<CardContainer>
254+
<div className="-me-4 -ms-4 flex flex-wrap">
269255
{cards.map((card, idx) => (
270256
<StyledCard
271257
key={idx}
@@ -274,7 +260,7 @@ const WalletsPage = () => {
274260
description={card.description}
275261
/>
276262
))}
277-
</CardContainer>
263+
</div>
278264
</div>
279265
</div>
280266

@@ -444,7 +430,7 @@ const WalletsPage = () => {
444430
<h2 className="mb-8 mt-12 text-2xl leading-[1.4] md:text-[2rem]">
445431
{t("page-wallets-explore")}
446432
</h2>
447-
<CalloutCardContainer>
433+
<div className="-me-4 -ms-4 mt-16 flex flex-wrap">
448434
<Callout
449435
image={ETHImage}
450436
titleKey="page-wallets:page-wallets-get-some"
@@ -471,7 +457,7 @@ const WalletsPage = () => {
471457
</ButtonLink>
472458
</Box>
473459
</Callout>
474-
</CalloutCardContainer>
460+
</div>
475461
</div>
476462

477463
<div className="w-full px-8 py-4">

0 commit comments

Comments
 (0)