From 7118004ea4b3a21fcd4278eb0c9b4b338b8f1db4 Mon Sep 17 00:00:00 2001 From: Rodrigo De la Rivera Date: Wed, 11 Oct 2023 19:16:28 +0200 Subject: [PATCH] feat(components): Add a second generic item for columndefs defaulted as unknown --- .../table-virtualized/table-virtualized.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/table-virtualized/table-virtualized.tsx b/src/components/table-virtualized/table-virtualized.tsx index fb16094c..34c43511 100644 --- a/src/components/table-virtualized/table-virtualized.tsx +++ b/src/components/table-virtualized/table-virtualized.tsx @@ -14,17 +14,15 @@ import { useVirtualizer, VirtualizerOptions } from "@tanstack/react-virtual"; import React from "react"; import { DndProvider } from "react-dnd"; import { HTML5Backend } from "react-dnd-html5-backend"; +import { classNames } from "../../util/class-names"; +import { TableUnvirtualized } from "../table-unvirtualized"; import { DraggableRow } from "./draggable-row/draggable-row"; -import { VirtualizedHeaderGroup } from "./header-group/header-group"; import { ExpandableButtonCell } from "./expandable-button-cell/expandable-button-cell"; -import { TableUnvirtualized } from "../table-unvirtualized"; -import { classNames } from "../../util/class-names"; +import { VirtualizedHeaderGroup } from "./header-group/header-group"; -export interface TableVirtualizedProps { +export interface TableVirtualizedProps { data: TableData[]; - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - columnDefs: ColumnDef[]; + columnDefs: ColumnDef[]; showPlaceholder?: boolean; placeholder?: React.ReactNode; isDraggableRowsEnabled?: boolean;