Sha256: e6ec6e6e442d36aff8f7e5abbc716349955ae41eea7b1a6f886f5865be70a6ce
Contents?: true
Size: 728 Bytes
Versions: 65
Compression:
Stored size: 728 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { BugIcon, EnhancementIcon, SecurityIcon, UnknownIcon } from '@patternfly/react-icons'; import { translate as __ } from 'foremanReact/common/I18n'; const ErratumTypeLabel = ({ type }) => { switch (type) { case 'bugfix': return ( <p><BugIcon />{' '}{__('Bugfix')}</p> ); case 'enhancement': return ( <p><EnhancementIcon />{' '}{__('Enhancement')}</p> ); case 'security': return ( <p><SecurityIcon />{' '}{__('Security')}</p> ); default: return ( <p><UnknownIcon /> {type}</p> ); } }; ErratumTypeLabel.propTypes = { type: PropTypes.string.isRequired, }; export default ErratumTypeLabel;
Version data entries
65 entries across 65 versions & 1 rubygems