Skip to content

Commit

Permalink
Updated Table types (#561)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perez <[email protected]>
  • Loading branch information
bexsoft authored Oct 30, 2023
1 parent 8bdd229 commit 17fcd67
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/Table/TableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const TableBodyMain = styled.tbody<TableComponentsExtraProps>(
);

const TableBody: FC<
TableComponentsExtraProps & React.TableHTMLAttributes<HTMLTableSectionElement>
TableComponentsExtraProps & React.HTMLAttributes<HTMLTableSectionElement>
> = ({ children, sx, ...restProps }) => {
return (
<TableBodyMain sx={sx} {...restProps}>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Table/TableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ const TableCellMain = styled.td<TableComponentsExtraProps>(({ theme, sx }) => ({
}));

const TableCell: FC<
TableComponentsExtraProps &
React.TableHTMLAttributes<HTMLTableDataCellElement>
TableComponentsExtraProps & React.TdHTMLAttributes<HTMLTableDataCellElement>
> = ({ children, sx, ...restProps }) => {
return (
<TableCellMain sx={sx} {...restProps}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/TableHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const TableHeadMain = styled.thead<TableComponentsExtraProps>(
);

const TableHead: FC<
TableComponentsExtraProps & React.TableHTMLAttributes<HTMLTableSectionElement>
TableComponentsExtraProps & React.HTMLAttributes<HTMLTableSectionElement>
> = ({ children, sx, ...restProps }) => {
return (
<TableHeadMain sx={sx} {...restProps}>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Table/TableHeadCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ const TableHeadCellMain = styled.th<TableComponentsExtraProps>(
);

const TableHeadCell: FC<
TableComponentsExtraProps &
React.TableHTMLAttributes<HTMLTableHeaderCellElement>
TableComponentsExtraProps & React.ThHTMLAttributes<HTMLTableHeaderCellElement>
> = ({ children, sx, ...restProps }) => {
return (
<TableHeadCellMain sx={sx} {...restProps}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/TableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const TableRowMain = styled.tr<TableComponentsExtraProps>(({ theme, sx }) => ({
}));

const TableRow: FC<
TableComponentsExtraProps & React.TableHTMLAttributes<HTMLTableRowElement>
TableComponentsExtraProps & React.HTMLAttributes<HTMLTableRowElement>
> = ({ children, sx, ...restProps }) => {
return (
<TableRowMain sx={sx} {...restProps}>
Expand Down

0 comments on commit 17fcd67

Please sign in to comment.