From a2adf8e39f059e765040e6d1416be0e3e017ba2a Mon Sep 17 00:00:00 2001 From: Kevin Van Cott Date: Thu, 12 Oct 2023 01:31:27 -0500 Subject: [PATCH] release v2.0.0-alpha.6 --- packages/material-react-table/package.json | 2 +- .../src/hooks/useMRT_TableInstance.ts | 12 ++++++------ packages/material-react-table/src/types.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/material-react-table/package.json b/packages/material-react-table/package.json index 3dbeca918..cdb68677f 100644 --- a/packages/material-react-table/package.json +++ b/packages/material-react-table/package.json @@ -1,5 +1,5 @@ { - "version": "2.0.0-alpha.5", + "version": "2.0.0-alpha.6", "license": "MIT", "name": "material-react-table", "description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.", diff --git a/packages/material-react-table/src/hooks/useMRT_TableInstance.ts b/packages/material-react-table/src/hooks/useMRT_TableInstance.ts index 63e4502ef..a4e5eb2e5 100644 --- a/packages/material-react-table/src/hooks/useMRT_TableInstance.ts +++ b/packages/material-react-table/src/hooks/useMRT_TableInstance.ts @@ -103,12 +103,12 @@ export const useMRT_TableInstance: >( const [grouping, setGrouping] = useState( initialState.grouping ?? [], ); - const [hoveredColumn, setHoveredColumn] = useState< - { id: string } | MRT_Column | null - >(initialState.hoveredColumn ?? null); - const [hoveredRow, setHoveredRow] = useState< - { id: string } | MRT_Row | null - >(initialState.hoveredRow ?? null); + const [hoveredColumn, setHoveredColumn] = useState + > | null>(initialState.hoveredColumn ?? null); + const [hoveredRow, setHoveredRow] = useState> | null>( + initialState.hoveredRow ?? null, + ); const [isFullScreen, setIsFullScreen] = useState( initialState?.isFullScreen ?? false, ); diff --git a/packages/material-react-table/src/types.ts b/packages/material-react-table/src/types.ts index e6bdcc4f0..9cc0d436f 100644 --- a/packages/material-react-table/src/types.ts +++ b/packages/material-react-table/src/types.ts @@ -968,7 +968,7 @@ export type MRT_TableOptions> = Omit< values: Record>, any>; }) => Promise | void; onGlobalFilterFnChange?: OnChangeFn; - onHoveredColumnChange?: OnChangeFn> | null>; + onHoveredColumnChange?: OnChangeFn> | null>; onHoveredRowChange?: OnChangeFn> | null>; onIsFullScreenChange?: OnChangeFn; onShowAlertBannerChange?: OnChangeFn;