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

Version Path
katello-4.14.3 webpack/components/ErratumTypeLabel.js
katello-4.14.2 webpack/components/ErratumTypeLabel.js
katello-4.15.0 webpack/components/ErratumTypeLabel.js
katello-4.15.0.rc2 webpack/components/ErratumTypeLabel.js
katello-4.15.0.rc1 webpack/components/ErratumTypeLabel.js
katello-4.14.1 webpack/components/ErratumTypeLabel.js
katello-4.14.0 webpack/components/ErratumTypeLabel.js
katello-4.14.0.rc3 webpack/components/ErratumTypeLabel.js
katello-4.14.0.rc2 webpack/components/ErratumTypeLabel.js
katello-4.14.0.rc1.1 webpack/components/ErratumTypeLabel.js
katello-4.14.0.rc1 webpack/components/ErratumTypeLabel.js
katello-4.13.1 webpack/components/ErratumTypeLabel.js
katello-4.13.0 webpack/components/ErratumTypeLabel.js
katello-4.12.1 webpack/components/ErratumTypeLabel.js
katello-4.13.0.rc1 webpack/components/ErratumTypeLabel.js
katello-4.12.0 webpack/components/ErratumTypeLabel.js
katello-4.12.0.rc3 webpack/components/ErratumTypeLabel.js
katello-4.12.0.rc2 webpack/components/ErratumTypeLabel.js
katello-4.12.0.rc1 webpack/components/ErratumTypeLabel.js
katello-4.11.1 webpack/components/ErratumTypeLabel.js