Actions
Bug #26861
openMake less props required for "EmptyState" component
Status:
New
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Description
On Katello's ModuleStream page, we are getting quite a few warnings when there is no data for the table:
checkPropTypes.js:20 Warning: Failed prop type: The prop `description` is marked as required in `DefaultEmptyState`, but its value is `undefined`. checkPropTypes.js:20 Warning: Failed prop type: The prop `description` is marked as required in `EmptyStatePattern`, but its value is `undefined`. checkPropTypes.js:20 Warning: Failed prop type: The prop `children` is marked as required in `EmptyStateInfo`, but its value is `undefined`.
It would be nice if EmptyState didn't have so many required props, and instead, let you just pass a 'header' to it to display when there are no results.
Actions