Sha256: f4eef7ef5021c92a2098fe661343a1a2bf02460a5a22dd166522dedef935813d
Contents?: true
Size: 598 Bytes
Versions: 43
Compression:
Stored size: 598 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
43 entries across 43 versions & 1 rubygems