gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 934 forks source link

Bad typing on MUIDataTableOptions renderExpandableRow - rowData #2031

Open hajdun opened 8 months ago

hajdun commented 8 months ago

Bad typing on MUIDataTableOptions renderExpandableRow - rowData param rowData is NOT a string array, it is an object similar to React.Component<{text: string}>

Expected Behavior

rowData is NOT a string array, it is an object like React.Component<{text: string}>

Current Behavior

rowData is set to a string array

Steps to Reproduce (for bugs)

  1. Check MUIDataTableOptions type
  2. Check renderExpandableRow
  3. Check rowData param

Your Environment

Tech Version
Material-UI
MUI-datatables
React
browser
etc