From 5f44ff2e75aceffbb68f88e1351114205d28402a Mon Sep 17 00:00:00 2001 From: Jan Potoms <2109932+Janpot@users.noreply.github.com> Date: Mon, 3 Apr 2023 18:41:54 +0200 Subject: [PATCH] Remove obsolete onDelete datagrid property (#1850) --- packages/toolpad-components/src/DataGrid.tsx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/packages/toolpad-components/src/DataGrid.tsx b/packages/toolpad-components/src/DataGrid.tsx index 92bcd4b9114..4ef95171e21 100644 --- a/packages/toolpad-components/src/DataGrid.tsx +++ b/packages/toolpad-components/src/DataGrid.tsx @@ -393,10 +393,6 @@ interface Selection { id?: any; } -interface OnDeleteEvent { - row: GridRowsProp[number]; -} - interface ToolpadDataGridProps extends Omit { rows?: GridRowsProp; columns?: SerializableGridColumns; @@ -405,7 +401,6 @@ interface ToolpadDataGridProps extends Omit void; - onDelete?: (event: OnDeleteEvent) => void; hideToolbar?: boolean; } @@ -614,16 +609,5 @@ export default createComponent(DataGridComponent, { helperText: SX_PROP_HELPER_TEXT, typeDef: { type: 'object' }, }, - onDelete: { - typeDef: { - type: 'event', - arguments: [ - { - name: 'event', - tsType: `{ row: ThisComponent['rows'][number] }`, - }, - ], - }, - }, }, });