Skip to content

Commit d6257b9

Browse files
committed
remove chakra ul from md template
1 parent ed4659c commit d6257b9

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/templates/static.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ import {
66
Text,
77
Divider as ChakraDivider,
88
Heading,
9-
ListItem as ChakraListItem,
10-
UnorderedList as ChakraUnorderedList,
119
Icon,
10+
chakra,
1211
} from "@chakra-ui/react"
1312
import { graphql, PageProps } from "gatsby"
1413
import { useI18next } from "gatsby-plugin-react-i18next"
@@ -159,11 +158,7 @@ const Paragraph = (props: ChildOnlyProp) => (
159158
)
160159

161160
const ListItem = (props: ChildOnlyProp) => (
162-
<ChakraListItem color="text300" {...props} />
163-
)
164-
165-
const UnorderedList = (props: ChildOnlyProp) => (
166-
<ChakraUnorderedList ms="1.45rem" {...props} />
161+
<chakra.li color="text300" {...props} />
167162
)
168163

169164
const CardContainer = (props: ChildOnlyProp) => (
@@ -179,7 +174,6 @@ const components = {
179174
h3: Header3,
180175
h4: Header4,
181176
p: Paragraph,
182-
ul: UnorderedList,
183177
li: ListItem,
184178
pre: Pre,
185179
hr: HR,
@@ -257,7 +251,7 @@ const StaticPage = ({
257251
mx="auto"
258252
mb={16}
259253
p={8}
260-
pt={{ lg: 16 }}
254+
pt={{ base: 8, lg: 16 }}
261255
dir={isRightToLeft ? "rtl" : "ltr"}
262256
>
263257
<PageMetadata

0 commit comments

Comments
 (0)