Skip to content

Commit 9a336dd

Browse files
authored
Merge pull request #14089 from Baystef/migrate/roadmapimagecontent
Migrate roadmap/roadmapimagecontent to shadcn/tailwind
2 parents 0cb030a + 81d1bf3 commit 9a336dd

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/components/Roadmap/RoadmapImageContent.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Center, Flex, Heading, Stack } from "@chakra-ui/react"
2-
3-
import { Image } from "@/components/Image"
1+
import { TwImage } from "@/components/Image"
2+
import { Center, Flex, Stack } from "@/components/ui/flex"
43

54
import wallet from "@/public/images/wallet.png"
65

@@ -10,16 +9,16 @@ export type RoadmapImageContentProps = {
109
}
1110

1211
const RoadmapImageContent = ({ children, title }: RoadmapImageContentProps) => (
13-
<Stack mb={1} mt={16}>
14-
<Heading as="h3">{title}</Heading>
15-
<Flex flexDir={{ base: "column", lg: "row" }}>
16-
<Stack mb={4}>{children}</Stack>
17-
<Center minW="fit-content">
18-
<Image
12+
<Stack className="mb-1 mt-16">
13+
<h3>{title}</h3>
14+
<Flex className="flex-col lg:flex-row">
15+
<Stack className="mb-4">{children}</Stack>
16+
<Center className="min-w-fit">
17+
<TwImage
18+
className="object-contain"
1919
src={wallet}
2020
alt="Ethereum Wallet"
2121
width={350}
22-
style={{ objectFit: "contain" }}
2322
/>
2423
</Center>
2524
</Flex>

0 commit comments

Comments
 (0)