File tree 1 file changed +9
-12
lines changed
site/src/components/Markdown
1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
1
import type { Interpolation , Theme } from "@emotion/react" ;
2
2
import Link from "@mui/material/Link" ;
3
- import Table from "@mui/material/Table" ;
4
- import TableBody from "@mui/material/TableBody" ;
5
- import TableCell from "@mui/material/TableCell" ;
6
- import TableContainer from "@mui/material/TableContainer" ;
7
- import TableHead from "@mui/material/TableHead" ;
8
- import TableRow from "@mui/material/TableRow" ;
3
+ import {
4
+ Table ,
5
+ TableBody ,
6
+ TableCell ,
7
+ TableHeader ,
8
+ TableRow ,
9
+ } from "components/Table/Table" ;
9
10
import isEqual from "lodash/isEqual" ;
10
11
import { type FC , memo } from "react" ;
11
12
import ReactMarkdown , { type Options } from "react-markdown" ;
@@ -90,19 +91,15 @@ export const Markdown: FC<MarkdownProps> = (props) => {
90
91
} ,
91
92
92
93
table : ( { children } ) => {
93
- return (
94
- < TableContainer >
95
- < Table > { children } </ Table >
96
- </ TableContainer >
97
- ) ;
94
+ return < Table > { children } </ Table > ;
98
95
} ,
99
96
100
97
tr : ( { children } ) => {
101
98
return < TableRow > { children } </ TableRow > ;
102
99
} ,
103
100
104
101
thead : ( { children } ) => {
105
- return < TableHead > { children } </ TableHead > ;
102
+ return < TableHeader > { children } </ TableHeader > ;
106
103
} ,
107
104
108
105
tbody : ( { children } ) => {
You can’t perform that action at this time.
0 commit comments