material-table
material-table copied to clipboard
Icon Props not being parsed to component override
Describe the bug When Parsing the Props to a Component Override the Icons are not parsed across
To Reproduce Steps to reproduce the behavior:
- add component override
- parse props to new component
- attempt to use Icon defined in props in new component
- See error
Expected behavior I would expect to be able to use the pre-defined icons in my new component
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome
Additional context The component I am trying to override is the Pagination Component
Can you share your code (just material-table usage)
<MaterialTable
columns={gridSetup.headers}
data={this.GetData(gridSetup.pageSize, 1)}
title="Grid Demo"
options={{
filtering: true,
search: false,
columnsButton: true,
paging: true,
showEmptyDataSourceMessage: true,
pageSize: (gridSetup.pageSize)
}}
components={{
Pagination: props => (
<TablePagination {...props} />
)
}}
localization={{
body: {
emptyDataSourceMessage: 'No Records to Display'
}
}}
/>
This then gives this error:

v1.16.0 published