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 11import 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"
133
144export interface IProps {
155 children ?: React . ReactNode
166}
177
188const 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 >
2222)
2323
2424export default MarkdownTable
You can’t perform that action at this time.
0 commit comments