@@ -5,6 +5,7 @@ import Translation from "@/components/Translation"
5
5
import docLinks from "@/data/developer-docs-links.yaml"
6
6
7
7
import InlineLink from "./ui/Link"
8
+ import { ListItem , UnorderedList } from "./ui/list"
8
9
9
10
export type DeveloperDocsLinksProps = {
10
11
headerId : string
@@ -15,10 +16,10 @@ const DeveloperDocsLinks = ({ headerId }: DeveloperDocsLinksProps) => (
15
16
{ docLinks
16
17
. filter ( ( { id } ) => id . includes ( headerId ) )
17
18
. map ( ( { items, id } ) => (
18
- < ul className = "ms-6 space-y-3" key = { id } >
19
+ < UnorderedList className = "ms-6 space-y-3" key = { id } >
19
20
{ items &&
20
21
items . map ( ( { id, href, path, description, items } ) => (
21
- < li key = { id } >
22
+ < ListItem key = { id } >
22
23
{ href || path ? (
23
24
< InlineLink href = { href || path } >
24
25
< Translation id = { `page-developers-docs:${ id } ` } />
@@ -30,19 +31,19 @@ const DeveloperDocsLinks = ({ headerId }: DeveloperDocsLinksProps) => (
30
31
{ " – " }
31
32
< Translation id = { `page-developers-docs:${ description } ` } />
32
33
</ 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" >
34
35
{ items &&
35
36
items . map ( ( { id, href, path } ) => (
36
- < li key = { id } >
37
+ < ListItem key = { id } >
37
38
< InlineLink href = { href || path } >
38
39
< Translation id = { `page-developers-docs:${ id } ` } />
39
40
</ InlineLink >
40
- </ li >
41
+ </ ListItem >
41
42
) ) }
42
- </ ul >
43
- </ li >
43
+ </ UnorderedList >
44
+ </ ListItem >
44
45
) ) }
45
- </ ul >
46
+ </ UnorderedList >
46
47
) ) }
47
48
</ React . Fragment >
48
49
)
0 commit comments