Sha256: b2289fe34509d25c1838d858d20429984bd6437e6ccd647ef662d3f01523c5bf
Contents?: true
Size: 593 Bytes
Versions: 28
Compression:
Stored size: 593 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Label } from '@patternfly/react-core'; const ComponentEnvironments = ({ environments }) => environments.map((env, index) => ( <Label key={env.id} style={{ margin: `4px 0 4px ${index > 0 ? '4px' : '0'}` }} color="purple" href={`/lifecycle_environments/${env.id}`} isTruncated > {env.name} </Label> )); ComponentEnvironments.propTypes = { environments: PropTypes.instanceOf(Array), }; ComponentEnvironments.defaultProps = { environments: [], }; export default ComponentEnvironments;
Version data entries
28 entries across 28 versions & 1 rubygems