@@ -3,15 +3,9 @@ import { GetStaticProps } from "next"
3
3
import { useRouter } from "next/router"
4
4
import { useTranslation } from "next-i18next"
5
5
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"
13
7
14
- import { BasePageProps , ChildOnlyProp , Lang } from "@/lib/types"
8
+ import { BasePageProps , Lang } from "@/lib/types"
15
9
16
10
import ButtonLink from "@/components/Buttons/ButtonLink"
17
11
import Callout from "@/components/Callout"
@@ -44,10 +38,6 @@ import ETHImage from "@/public/images/eth-logo.png"
44
38
import FindWalletImage from "@/public/images/wallets/find-wallet.png"
45
39
import HeroImage from "@/public/images/wallets/wallet-hero.png"
46
40
47
- const CardContainer = ( props : BoxProps ) => (
48
- < Box display = { "flex" } flexWrap = { "wrap" } ms = { - 4 } me = { - 4 } { ...props } />
49
- )
50
-
51
41
export const StyledCard = ( props : ComponentPropsWithRef < typeof Card > ) => (
52
42
< Card
53
43
flex = "1 1 30%"
@@ -66,10 +56,6 @@ const ChecklistItem = (props: HorizontalCardProps) => (
66
56
/>
67
57
)
68
58
69
- const CalloutCardContainer = ( props : ChildOnlyProp ) => (
70
- < CardContainer mt = { 16 } { ...props } />
71
- )
72
-
73
59
export const getStaticProps = ( async ( { locale } ) => {
74
60
const lastDeployDate = getLastDeployDate ( )
75
61
const lastDeployLocaleTimestamp = getLocaleTimestamp (
@@ -265,7 +251,7 @@ const WalletsPage = () => {
265
251
</ div >
266
252
</ div >
267
253
< div className = "w-full px-8 py-4" >
268
- < CardContainer >
254
+ < div className = "-me-4 -ms-4 flex flex-wrap" >
269
255
{ cards . map ( ( card , idx ) => (
270
256
< StyledCard
271
257
key = { idx }
@@ -274,7 +260,7 @@ const WalletsPage = () => {
274
260
description = { card . description }
275
261
/>
276
262
) ) }
277
- </ CardContainer >
263
+ </ div >
278
264
</ div >
279
265
</ div >
280
266
@@ -444,7 +430,7 @@ const WalletsPage = () => {
444
430
< h2 className = "mb-8 mt-12 text-2xl leading-[1.4] md:text-[2rem]" >
445
431
{ t ( "page-wallets-explore" ) }
446
432
</ h2 >
447
- < CalloutCardContainer >
433
+ < div className = "-me-4 -ms-4 mt-16 flex flex-wrap" >
448
434
< Callout
449
435
image = { ETHImage }
450
436
titleKey = "page-wallets:page-wallets-get-some"
@@ -471,7 +457,7 @@ const WalletsPage = () => {
471
457
</ ButtonLink >
472
458
</ Box >
473
459
</ Callout >
474
- </ CalloutCardContainer >
460
+ </ div >
475
461
</ div >
476
462
477
463
< div className = "w-full px-8 py-4" >
0 commit comments