Skip to content

Commit 50245d2

Browse files
committed
Update RollupProductDevDoc.tsx
1 parent cd1e25f commit 50245d2

File tree

1 file changed

+20
-29
lines changed

1 file changed

+20
-29
lines changed

src/components/RollupProductDevDoc.tsx

Lines changed: 20 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import { Box, Flex, Heading, ListItem, UnorderedList } from "@chakra-ui/react"
2-
31
import { layer2Data, Rollups, RollupType } from "@/data/layer-2/layer-2"
42

53
import InlineLink from "./Link"
6-
import Text from "./OldText"
74
import Translation from "./Translation"
85

96
const rollups = layer2Data as Rollups
@@ -14,51 +11,45 @@ export type RollupProductDevDocProps = {
1411

1512
const RollupProductDevDoc = ({ rollupType }: RollupProductDevDocProps) => {
1613
return (
17-
<Box>
14+
<div>
1815
{rollups[rollupType].map(
1916
({ name, noteKey, website, developerDocs, l2beat }, idx) => {
2017
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-
>
18+
<div key={idx} className="bg-rollupDevDocList my-4">
19+
<div className="p-4 pb-0">
20+
<div>
21+
<h4 className="my-4 text-md font-medium leading-relaxed md:text-xl">
3122
{name}
32-
</Heading>
23+
</h4>
3324
{noteKey.length > 0 && (
34-
<Text>
25+
<p>
3526
* <Translation id={`page-layer-2:${noteKey}`} />
36-
</Text>
27+
</p>
3728
)}
38-
<UnorderedList>
39-
<ListItem>
29+
<ul className="list-disc pl-5">
30+
<li>
4031
<InlineLink href={website}>
4132
<Translation id="rollup-component-website" />
4233
</InlineLink>
43-
</ListItem>
44-
<ListItem>
34+
</li>
35+
<li>
4536
<InlineLink href={developerDocs}>
4637
<Translation id="rollup-component-developer-docs" />
4738
</InlineLink>
48-
</ListItem>
49-
<ListItem>
39+
</li>
40+
<li>
5041
<InlineLink href={l2beat}>
5142
<Translation id="rollup-component-technology-and-risk-summary" />
5243
</InlineLink>
53-
</ListItem>
54-
</UnorderedList>
55-
</Box>
56-
</Box>
57-
</Flex>
44+
</li>
45+
</ul>
46+
</div>
47+
</div>
48+
</div>
5849
)
5950
}
6051
)}
61-
</Box>
52+
</div>
6253
)
6354
}
6455

0 commit comments

Comments
 (0)