import chakra components, add ol styling

This commit is contained in:
Paul Wackerow 2022-11-28 13:28:12 -08:00
parent f36e271041
commit dec085dcbb
No known key found for this signature in database
GPG Key ID: BB63E296FE9CAB8D
1 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,14 @@
import { Flex, Heading, Link, Stack, Table, Text } from '@chakra-ui/react';
import {
Flex,
Heading,
Link,
ListItem,
OrderedList,
Stack,
Table,
Text,
UnorderedList
} from '@chakra-ui/react';
import NextLink from 'next/link';
import { Code } from './UI/docs';
@ -85,6 +95,9 @@ const MDXComponents = {
ul: ({children}: any) => {
return <UnorderedList mb={7} px={4}>{children}</UnorderedList>
},
ol: ({children}: any) => {
return <OrderedList mb={7} px={4}>{children}</OrderedList>
},
li: ({ children }: any) => {
return <ListItem color='primary'>{children}</ListItem>
}