Skip to content

Commit 6bcd149

Browse files
authored
Merge pull request #14268 from cqw-acq/migration-RollupProductDevDoc.tsx-to-tailwind
migration-RollupProductDevDoc.tsx-to-tailwind
2 parents 08d964d + 2b349de commit 6bcd149

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

src/components/RollupProductDevDoc.tsx

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { Box, Flex, Heading, ListItem, UnorderedList } from "@chakra-ui/react"
1+
import { ListItem, UnorderedList } from "@/components/ui/list"
22

33
import { layer2Data, Rollups, RollupType } from "@/data/layer-2/layer-2"
44

55
import InlineLink from "./Link"
6-
import Text from "./OldText"
76
import Translation from "./Translation"
87

98
const rollups = layer2Data as Rollups
@@ -14,26 +13,20 @@ export type RollupProductDevDocProps = {
1413

1514
const RollupProductDevDoc = ({ rollupType }: RollupProductDevDocProps) => {
1615
return (
17-
<Box>
16+
<div>
1817
{rollups[rollupType].map(
1918
({ name, noteKey, website, developerDocs, l2beat }, idx) => {
2019
return (
21-
<Flex key={idx} my={4} background="rollupDevDocList">
22-
<Box p={4} pb={0}>
23-
<Box>
24-
<Heading
25-
as="h4"
26-
fontSize={{ base: "md", md: "xl" }}
27-
fontWeight="500"
28-
lineHeight="1.4"
29-
my={4}
30-
>
20+
<div key={idx} className="my-4 bg-background-highlight">
21+
<div className="p-4 pb-0">
22+
<div>
23+
<h4 className="my-4 text-md font-medium leading-relaxed md:text-xl">
3124
{name}
32-
</Heading>
25+
</h4>
3326
{noteKey.length > 0 && (
34-
<Text>
27+
<p className="mb-4">
3528
* <Translation id={`page-layer-2:${noteKey}`} />
36-
</Text>
29+
</p>
3730
)}
3831
<UnorderedList>
3932
<ListItem>
@@ -52,13 +45,13 @@ const RollupProductDevDoc = ({ rollupType }: RollupProductDevDocProps) => {
5245
</InlineLink>
5346
</ListItem>
5447
</UnorderedList>
55-
</Box>
56-
</Box>
57-
</Flex>
48+
</div>
49+
</div>
50+
</div>
5851
)
5952
}
6053
)}
61-
</Box>
54+
</div>
6255
)
6356
}
6457

0 commit comments

Comments
 (0)