Project

General

Profile

Actions

Bug #26861

open

Make less props required for "EmptyState" component

Added by John Mitsch almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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 #1

Updated by John Mitsch almost 5 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF