Skip to content

Commit 4401029

Browse files
committed
chore: update with suggested changes
1 parent bce5f7d commit 4401029

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/components/DeveloperDocsLinks.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Translation from "@/components/Translation"
55
import docLinks from "@/data/developer-docs-links.yaml"
66

77
import InlineLink from "./ui/Link"
8+
import { ListItem, UnorderedList } from "./ui/list"
89

910
export type DeveloperDocsLinksProps = {
1011
headerId: string
@@ -15,10 +16,10 @@ const DeveloperDocsLinks = ({ headerId }: DeveloperDocsLinksProps) => (
1516
{docLinks
1617
.filter(({ id }) => id.includes(headerId))
1718
.map(({ items, id }) => (
18-
<ul className="ms-6 space-y-3" key={id}>
19+
<UnorderedList className="ms-6 space-y-3" key={id}>
1920
{items &&
2021
items.map(({ id, href, path, description, items }) => (
21-
<li key={id}>
22+
<ListItem key={id}>
2223
{href || path ? (
2324
<InlineLink href={href || path}>
2425
<Translation id={`page-developers-docs:${id}`} />
@@ -30,19 +31,19 @@ const DeveloperDocsLinks = ({ headerId }: DeveloperDocsLinksProps) => (
3031
{" – "}
3132
<Translation id={`page-developers-docs:${description}`} />
3233
</i>
33-
<ul className="ms-6 mt-3 list-[circle] space-y-3">
34+
<UnorderedList className="ms-6 mt-3 list-[circle] space-y-3">
3435
{items &&
3536
items.map(({ id, href, path }) => (
36-
<li key={id}>
37+
<ListItem key={id}>
3738
<InlineLink href={href || path}>
3839
<Translation id={`page-developers-docs:${id}`} />
3940
</InlineLink>
40-
</li>
41+
</ListItem>
4142
))}
42-
</ul>
43-
</li>
43+
</UnorderedList>
44+
</ListItem>
4445
))}
45-
</ul>
46+
</UnorderedList>
4647
))}
4748
</React.Fragment>
4849
)

0 commit comments

Comments
 (0)