material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Icon Props not being parsed to component override

Open IllusiveBagel opened this issue 7 years ago • 3 comments

Describe the bug When Parsing the Props to a Component Override the Icons are not parsed across

To Reproduce Steps to reproduce the behavior:

  1. add component override
  2. parse props to new component
  3. attempt to use Icon defined in props in new component
  4. 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

IllusiveBagel avatar Jan 25 '19 12:01 IllusiveBagel

Can you share your code (just material-table usage)

mbrn avatar Jan 25 '19 13:01 mbrn

<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: image

IllusiveBagel avatar Jan 25 '19 13:01 IllusiveBagel

v1.16.0 published

mbrn avatar Feb 01 '19 06:02 mbrn