Skip to content

Commit 86bf51c

Browse files
committed
feat: migrate BeaconChainActions to tailwind
1 parent 6295ba4 commit 86bf51c

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

src/components/BeaconChainActions.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
import { useTranslation } from "next-i18next"
2-
import { Box, Flex } from "@chakra-ui/react"
32

43
import { ChildOnlyProp } from "@/lib/types"
54

6-
import { ButtonLink } from "@/components/Buttons"
75
import Card from "@/components/Card"
86
import CardList, { type CardListItem } from "@/components/CardList"
9-
import OldHeading from "@/components/OldHeading"
107
import Translation from "@/components/Translation"
118

9+
import { ButtonLink } from "./ui/buttons/Button"
10+
import { Flex } from "./ui/flex"
11+
1212
import beaconchain from "@/public/images/upgrades/beaconchainemoji.png"
1313
import beaconscan from "@/public/images/upgrades/etherscan.png"
1414

1515
const H3 = ({ children }: ChildOnlyProp) => (
16-
<OldHeading
17-
as="h3"
18-
fontSize="2xl"
19-
fontWeight="bold"
20-
mb={8}
21-
sx={{ a: { display: "none" } }}
22-
>
23-
{children}
24-
</OldHeading>
16+
<h3 className="mb-8 mt-10 text-2xl font-bold [&_a]:hidden">{children}</h3>
2517
)
2618

2719
const BeaconChainActions = () => {
@@ -64,8 +56,8 @@ const BeaconChainActions = () => {
6456
]
6557

6658
return (
67-
<Box mb={16}>
68-
<Flex flexDir={{ base: "column", md: "row" }} pt={4}>
59+
<div className="mb-16">
60+
<Flex className="flex-col pt-4 md:flex-row">
6961
<Card
7062
w="full"
7163
ms={0}
@@ -92,7 +84,7 @@ const BeaconChainActions = () => {
9284
<Translation id="read-more" />
9385
</H3>
9486
<CardList items={reads} />
95-
</Box>
87+
</div>
9688
)
9789
}
9890

0 commit comments

Comments
 (0)