Skip to content

Commit

Permalink
Fix type error in virtualized table demo
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Jun 26, 2024
1 parent a7f4b1a commit 7c6e1d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/data/material/components/table/ReactVirtualizedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ const VirtuosoTableComponents: TableComponents<Data> = {
Table: (props) => (
<Table {...props} sx={{ borderCollapse: 'separate', tableLayout: 'fixed' }} />
),
TableHead,
TableRow: ({ item: _item, ...props }) => <TableRow {...props} />,
TableHead: React.forwardRef<HTMLTableSectionElement>((props, ref) => (
<TableHead {...props} ref={ref} />
)),
TableRow,
TableBody: React.forwardRef<HTMLTableSectionElement>((props, ref) => (
<TableBody {...props} ref={ref} />
)),
Expand Down

0 comments on commit 7c6e1d3

Please sign in to comment.