File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
- import styled from "@emotion/styled"
3
-
4
- const TableContainer = styled . div `
5
- overflow-x: auto;
6
- margin: 2rem 0;
7
-
8
- th {
9
- border-bottom: 1px solid ${ ( props ) => props . theme . colors . border } ;
10
- white-space: nowrap;
11
- }
12
- `
2
+ import { Box , Table } from "@chakra-ui/react"
13
3
14
4
export interface IProps {
15
5
children ?: React . ReactNode
16
6
}
17
7
18
8
const MarkdownTable : React . FC < IProps > = ( { children } ) => (
19
- < TableContainer >
20
- < table > { children } </ table >
21
- </ TableContainer >
9
+ < Box my = { 8 } >
10
+ < Table
11
+ sx = { {
12
+ th : {
13
+ borderBottom : "1px solid" ,
14
+ borderColor : "border" ,
15
+ whiteSpace : "nowrap" ,
16
+ } ,
17
+ } }
18
+ >
19
+ { children }
20
+ </ Table >
21
+ </ Box >
22
22
)
23
23
24
24
export default MarkdownTable
You can’t perform that action at this time.
0 commit comments