webpack/components/AddedStatusLabel.js in katello-4.2.0.rc1 vs webpack/components/AddedStatusLabel.js in katello-4.2.0.rc2

- old
+ new

@@ -1,17 +1,22 @@ import React from 'react'; import { Label } from '@patternfly/react-core'; import { CheckCircleIcon } from '@patternfly/react-icons'; import { translate as __ } from 'foremanReact/common/I18n'; +import PropTypes from 'prop-types'; const AddedStatusLabel = ({ added }) => { if (added) { return ( <Label variant="outline" color="green" icon={<CheckCircleIcon />}> {__('Added')} </Label> ); } return __('Not added'); +}; + +AddedStatusLabel.propTypes = { + added: PropTypes.bool.isRequired, }; export default AddedStatusLabel;