Skip to content

Commit

Permalink
Fix: #455 Use proper detailPanel callback signature when detailPanel …
Browse files Browse the repository at this point in the history
…is an array of callbacks (#468)
  • Loading branch information
tondi authored Jan 27, 2022
1 parent bbb2fba commit b6ae7bc
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 b6ae7bc

Please sign in to comment.