Skip to content

Commit

Permalink
fix: add children to TableHead & TableFoot types (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
mocantimoteidavid committed Jun 23, 2023
1 parent 145804a commit 493172c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ export interface TableComponents<Data = unknown, Context = unknown> {
Table?: React.ComponentType<TableProps & { context?: Context }>

/**
* Set to render a fixed header at the top of the table (`thead`). use [[fixedHeaderHeight]] to set the contents
* Set to render a fixed header at the top of the table (`thead`). use [[fixedHeaderContent]] to set the contents
*
*/
TableHead?: React.ComponentType<Pick<React.ComponentPropsWithRef<'thead'>, 'style' | 'ref'> & { context?: Context }>
TableHead?: React.ComponentType<Pick<React.ComponentPropsWithRef<'thead'>, 'style' | 'children' | 'ref'> & { context?: Context }>

/**
* Set to render a fixed footer at the bottom of the table (`tfoot`). use [[fixedFooterContent]] to set the contents
*/
TableFoot?: React.ComponentType<Pick<React.ComponentPropsWithRef<'tfoot'>, 'style' | 'ref'> & { context?: Context }>
TableFoot?: React.ComponentType<Pick<React.ComponentPropsWithRef<'tfoot'>, 'style' | 'children' | 'ref'> & { context?: Context }>

/**
* Set to customize the item wrapping element. Default is `tr`.
Expand Down

0 comments on commit 493172c

Please sign in to comment.