We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91bc4e9 commit e200c00Copy full SHA for e200c00
src/components/MarkdownTable.tsx
@@ -1,22 +1,24 @@
1
import React from "react"
2
-import { Table, TableContainer, Th } from "@chakra-ui/react"
+import { Box, Table } from "@chakra-ui/react"
3
4
export interface IProps {
5
children?: React.ReactNode
6
}
7
8
const MarkdownTable: React.FC<IProps> = ({ children }) => (
9
- <TableContainer my={8}>
10
- <Table>
11
- <Th
12
- borderBottom={"1px solid"}
13
- borderColor={"border"}
14
- whiteSpace={"nowrap"}
15
- >
16
- {children}
17
- </Th>
+ <Box my={8}>
+ <Table
+ sx={{
+ th: {
+ borderBottom: "1px solid",
+ borderColor: "border",
+ whiteSpace: "nowrap",
+ },
+ }}
18
+ >
19
+ {children}
20
</Table>
- </TableContainer>
21
+ </Box>
22
)
23
24
export default MarkdownTable
0 commit comments