Sha256: fe452d2caaf60dfe1697e6bff76317cd9a1423c29fd3bfc96755cd845dbbff58
Contents?: true
Size: 1.21 KB
Versions: 148
Compression:
Stored size: 1.21 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { ListView, Icon } from 'patternfly-react'; import RepositoryTypeIcon from './RepositoryTypeIcon'; // eslint-disable-next-line import/no-named-as-default import RepositorySetRepositories from './RepositorySetRepositories'; const RepositorySet = ({ type, id, name, label, product, recommended, }) => ( <ListView.Item id={id} className="listViewItem--listItemVariants" description={label} heading={name} leftContent={<RepositoryTypeIcon id={id} type={type} />} stacked actions={recommended ? <Icon type="fa" name="star" className="recommended-repository-set-icon" /> : ''} hideCloseIcon > <RepositorySetRepositories contentId={id} productId={product.id} type={type} label={label} /> </ListView.Item> ); RepositorySet.propTypes = { id: PropTypes.number.isRequired, type: PropTypes.string.isRequired, name: PropTypes.string.isRequired, label: PropTypes.string.isRequired, product: PropTypes.shape({ name: PropTypes.string.isRequired, id: PropTypes.number.isRequired, }).isRequired, recommended: PropTypes.bool, }; RepositorySet.defaultProps = { recommended: false, }; export default RepositorySet;
Version data entries
148 entries across 148 versions & 1 rubygems