Sha256: 1a382e64bcc96f21fb2748f84110b7c9d4fa1cd1052ee6b9f41a23c7ae854312
Contents?: true
Size: 1.02 KB
Versions: 88
Compression:
Stored size: 1.02 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Flex, FlexItem } from '@patternfly/react-core'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import ComponentEnvironments from '../Details/ComponentContentViews/ComponentEnvironments'; const ContentViewVersionCell = ({ id, latestVersion, latestVersionId, latestVersionEnvironments, }) => ( <Flex grow={{ default: 'grow' }}> <FlexItem> <a href={urlBuilder(`content_views/${id}/versions/${latestVersionId}`, '')}>{`Version ${latestVersion}`}</a> </FlexItem> <FlexItem> <ComponentEnvironments environments={latestVersionEnvironments} /> </FlexItem> </Flex> ); ContentViewVersionCell.propTypes = { id: PropTypes.number.isRequired, latestVersion: PropTypes.string.isRequired, latestVersionId: PropTypes.number, latestVersionEnvironments: PropTypes.instanceOf(Array), }; ContentViewVersionCell.defaultProps = { latestVersionId: null, latestVersionEnvironments: [], }; export default ContentViewVersionCell;
Version data entries
88 entries across 88 versions & 1 rubygems