Skip to content

Commit

Permalink
Fix: material-table-core#455 Use proper detailPanel callback signatur…
Browse files Browse the repository at this point in the history
…e when detailPanel is an array of callbacks
  • Loading branch information
tondi committed Jan 27, 2022
1 parent cb2354c commit 0fb3761
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ export interface MaterialTableProps<RowData extends object> {
data: RowData[] | ((query: Query<RowData>) => Promise<QueryResult<RowData>>);
detailPanel?:
| (({ rowData }: { rowData: RowData }) => React.ReactNode)
| (
| DetailPanel<RowData>
| (({ rowData }: { rowData: RowData }) => DetailPanel<RowData>)
)[];
| (DetailPanel<RowData> | ((rowData: RowData) => DetailPanel<RowData>))[];
editable?: {
isEditable?: (rowData: RowData) => boolean;
isDeletable?: (rowData: RowData) => boolean;
Expand Down

0 comments on commit 0fb3761

Please sign in to comment.