mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
feat: modify component table
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user