Sha256: 291bc222410d09be800ba011b716bb5441acc79f3039dd606172f178f07d21c0

Contents?: true

Size: 920 Bytes

Versions: 69

Compression:

Stored size: 920 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

69 entries across 69 versions & 1 rubygems

Version Path
katello-4.16.0 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.15.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.16.0.rc2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.16.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.14.3 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.14.2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.15.0 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.15.0.rc2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.15.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.14.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.14.0 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.14.0.rc3 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.14.0.rc2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.14.0.rc1.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.14.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.13.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.13.0 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.12.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.13.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
katello-4.12.0 webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js