From 493172cf04ae8c54a6a4afdfebd568a0a7679746 Mon Sep 17 00:00:00 2001 From: Timotei Mocan Date: Fri, 23 Jun 2023 13:45:38 +0200 Subject: [PATCH] fix: add children to TableHead & TableFoot types (#935) --- src/interfaces.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interfaces.ts b/src/interfaces.ts index 58c6555bf..0e842a8cd 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -150,15 +150,15 @@ export interface TableComponents { Table?: React.ComponentType /** - * 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, 'style' | 'ref'> & { context?: Context }> + TableHead?: React.ComponentType, '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, 'style' | 'ref'> & { context?: Context }> + TableFoot?: React.ComponentType, 'style' | 'children' | 'ref'> & { context?: Context }> /** * Set to customize the item wrapping element. Default is `tr`.