From 09b0bf59a3b558d4d7b68fec4c2298d9d9293ccb Mon Sep 17 00:00:00 2001 From: pedrobonamin Date: Fri, 2 Aug 2024 09:34:55 +0200 Subject: [PATCH] fix(corel): remove Row prop from releases Table --- .../core/releases/components/Table/Table.tsx | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/packages/sanity/src/core/releases/components/Table/Table.tsx b/packages/sanity/src/core/releases/components/Table/Table.tsx index 860573c426a..8ce5712eaf1 100644 --- a/packages/sanity/src/core/releases/components/Table/Table.tsx +++ b/packages/sanity/src/core/releases/components/Table/Table.tsx @@ -18,24 +18,6 @@ type RowDatum = AdditionalRowTableData extend export interface TableProps { columnDefs: Column>[] searchFilter?: (data: TableData[], searchTerm: string) => TableData[] - /** - * @deprecated This is not necessary anymore - remove in next commit - */ - Row?: ({ - datum, - virtualRow, - children, - }: { - datum: TableData - virtualRow: VirtualItem - index: number - children: ( - rowData: TableData & { - virtualRow: VirtualItem - index: number - }, - ) => JSX.Element - }) => JSX.Element | null data: TableData[] emptyState: (() => JSX.Element) | string loading?: boolean @@ -70,7 +52,6 @@ const TableInner = ({ data, emptyState, searchFilter, - Row, rowId, rowActions, loading = false, @@ -221,18 +202,6 @@ const TableInner = ({ ? emptyContent : rowVirtualizer.getVirtualItems().map((virtualRow, index) => { const datum = filteredData[virtualRow.index] - if (Row) { - return ( - - {renderRow} - - ) - } return renderRow({...datum, virtualRow, index}) })}