react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

Warning: Failed prop type: Invalid prop `columns[0].name` of type `object` supplied to <ReactComponent />, expected 'string'.

Open JamshedHabibi opened this issue 3 years ago • 1 comments

Bug

Using a React component as the column name works as expected, however, I would expect that this console warning does not appear. This is causing unnecessary noise in my browser console.

To Reproduce

Steps to reproduce the behavior:

  1. Create react data table with the name as a React component.
  2. Click Inspect in the browser.
  3. See error - Warning: Failed prop type: Invalid prop columns[0].name of type object supplied to <ReactComponent />, expected 'string'.

Versions

  • React 16.12.0
  • Styled Components 4.4.1
  • Browser: Chrome v99

Screenshot 2022-03-21 at 13 57 10

Am I missing something here?

JamshedHabibi avatar Mar 21 '22 13:03 JamshedHabibi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 28 '22 10:04 stale[bot]