Sha256: 23dbe7af1ce58a56b0987acd497c0e93a6b704889045646c68a1a19c7de2e4bd
Contents?: true
Size: 783 Bytes
Versions: 28
Compression:
Stored size: 783 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({ provided_products: PropTypes.array, }).isRequired, }; export default SubscriptionDetailProducts;
Version data entries
28 entries across 28 versions & 1 rubygems