Skip to content

Commit

Permalink
release v2.0.0-alpha.6
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Oct 12, 2023
1 parent 45d7aee commit a2adf8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/material-react-table/package.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down
12 changes: 6 additions & 6 deletions packages/material-react-table/src/hooks/useMRT_TableInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ export const useMRT_TableInstance: <TData extends Record<string, any>>(
const [grouping, setGrouping] = useState<MRT_GroupingState>(
initialState.grouping ?? [],
);
const [hoveredColumn, setHoveredColumn] = useState<
{ id: string } | MRT_Column<TData> | null
>(initialState.hoveredColumn ?? null);
const [hoveredRow, setHoveredRow] = useState<
{ id: string } | MRT_Row<TData> | null
>(initialState.hoveredRow ?? null);
const [hoveredColumn, setHoveredColumn] = useState<Partial<
MRT_Column<TData>
> | null>(initialState.hoveredColumn ?? null);
const [hoveredRow, setHoveredRow] = useState<Partial<MRT_Row<TData>> | null>(
initialState.hoveredRow ?? null,
);
const [isFullScreen, setIsFullScreen] = useState<boolean>(
initialState?.isFullScreen ?? false,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/material-react-table/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ export type MRT_TableOptions<TData extends Record<string, any>> = Omit<
values: Record<LiteralUnion<string & DeepKeys<TData>>, any>;
}) => Promise<void> | void;
onGlobalFilterFnChange?: OnChangeFn<MRT_FilterOption>;
onHoveredColumnChange?: OnChangeFn<Partial<MRT_Row<TData>> | null>;
onHoveredColumnChange?: OnChangeFn<Partial<MRT_Column<TData>> | null>;
onHoveredRowChange?: OnChangeFn<Partial<MRT_Row<TData>> | null>;
onIsFullScreenChange?: OnChangeFn<boolean>;
onShowAlertBannerChange?: OnChangeFn<boolean>;
Expand Down

0 comments on commit a2adf8e

Please sign in to comment.