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