Skip to content

Commit 25f03f7

Browse files
authored
Merge pull request #8738 from metadiver/refactor/developer-docs-link-chakra
Refactor: replace ul with UnorderedList on DeveloperDocsLinks.tsx [Fixes #8633]
2 parents 9ee5739 + c7f729a commit 25f03f7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/components/DeveloperDocsLinks.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react"
2-
import { ListItem } from "./SharedStyledComponents"
2+
import { ListItem, UnorderedList } from "@chakra-ui/react"
33
import Translation from "./Translation"
44
import Link from "./Link"
55
import docLinks from "../data/developer-docs-links.yaml"
@@ -13,7 +13,7 @@ const DeveloperDocsLinks: React.FC<IProps> = ({ headerId }) => (
1313
{docLinks
1414
.filter(({ id }) => id.includes(headerId))
1515
.map(({ items, id }) => (
16-
<ul key={id}>
16+
<UnorderedList ml={6} spacing={3} key={id}>
1717
{items &&
1818
items.map(({ id, to, path, description, items }) => (
1919
<ListItem key={id}>
@@ -28,7 +28,12 @@ const DeveloperDocsLinks: React.FC<IProps> = ({ headerId }) => (
2828
{" – "}
2929
<Translation id={description} />
3030
</i>
31-
<ul>
31+
<UnorderedList
32+
ml={6}
33+
mt={3}
34+
spacing={3}
35+
style={{ listStyleType: "circle" }}
36+
>
3237
{items &&
3338
items.map(({ id, to, path }) => (
3439
<ListItem key={id}>
@@ -37,10 +42,10 @@ const DeveloperDocsLinks: React.FC<IProps> = ({ headerId }) => (
3742
</Link>
3843
</ListItem>
3944
))}
40-
</ul>
45+
</UnorderedList>
4146
</ListItem>
4247
))}
43-
</ul>
48+
</UnorderedList>
4449
))}
4550
</React.Fragment>
4651
)

0 commit comments

Comments
 (0)