feat: modify component table

This commit is contained in:
QiShaoXuan
2022-12-09 01:36:33 +08:00
parent d3224f983b
commit 312d898b54
6 changed files with 36 additions and 16 deletions
+6 -3
View File
@@ -1,8 +1,11 @@
import { PropsWithChildren } from 'react';
import { HTMLAttributes, PropsWithChildren } from 'react';
import { StyledTableRow } from './styles';
export const TableRow = ({ children }: PropsWithChildren<{}>) => {
return <StyledTableRow>{children}</StyledTableRow>;
export const TableRow = ({
children,
...props
}: PropsWithChildren<HTMLAttributes<HTMLTableRowElement>>) => {
return <StyledTableRow {...props}>{children}</StyledTableRow>;
};
export default TableRow;