Skip to content

Commit

Permalink
Remove obsolete onDelete datagrid property (#1850)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Apr 3, 2023
1 parent ceadd17 commit 5f44ff2
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/toolpad-components/src/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,6 @@ interface Selection {
id?: any;
}

interface OnDeleteEvent {
row: GridRowsProp[number];
}

interface ToolpadDataGridProps extends Omit<DataGridProProps, 'columns' | 'rows' | 'error'> {
rows?: GridRowsProp;
columns?: SerializableGridColumns;
Expand All @@ -405,7 +401,6 @@ interface ToolpadDataGridProps extends Omit<DataGridProProps, 'columns' | 'rows'
error?: Error | string;
selection?: Selection | null;
onSelectionChange?: (newSelection?: Selection | null) => void;
onDelete?: (event: OnDeleteEvent) => void;
hideToolbar?: boolean;
}

Expand Down Expand Up @@ -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] }`,
},
],
},
},
},
});

0 comments on commit 5f44ff2

Please sign in to comment.