Sha256: af947128e39a5fc5f4fe2bc86867e59b88f86b6c9eae341f3471cf51d20dce33

Contents?: true

Size: 922 Bytes

Versions: 68

Compression:

Stored size: 922 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { ListGroup, ListGroupItem } from 'patternfly-react';
import './SubscriptionDetails.scss';

const SubscriptionDetailProducts = ({ subscriptionDetails }) => (
  <div>
    <h2>{__('Provided Products')}</h2>
    <ListGroup className="scrolld-list">
      {subscriptionDetails.provided_products &&
        subscriptionDetails.provided_products.map(prod => (
          <ListGroupItem key={prod.id}> {prod.name} </ListGroupItem>
          ))}
    </ListGroup>
  </div>
);

SubscriptionDetailProducts.propTypes = {
  subscriptionDetails: PropTypes.shape({
    // Disabling rule as existing code failed due to an eslint-plugin-react update
    // eslint-disable-next-line react/forbid-prop-types
    provided_products: PropTypes.array,
  }).isRequired,
};

export default SubscriptionDetailProducts;

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
katello-4.3.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.4.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.2.2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.3.0 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.3.0.rc4 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.3.0.rc3 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.3.0.rc2.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.3.0.rc2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.3.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.2.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.2.0.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.1.4 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.0.3 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.2.0.1.rc3 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-3.18.5 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.2.0.1.rc2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.2.0.rc2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.1.3 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.2.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.0.2.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js