Sha256: 560a5f33f571ff6370a108be21c32080a7a066b483b6bc079b837a9e3745b78f
Contents?: true
Size: 684 Bytes
Versions: 5
Compression:
Stored size: 684 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from '@patternfly/react-core'; const HostReportsToShowCell = ({ active, id, children }) => active ? ( <Button variant="link" isInline component="a" href={`/hosts/${id}/host_reports`} > {children} </Button> ) : ( <Button variant="link" isInline isDisabled component="a"> {children} </Button> ); HostReportsToShowCell.propTypes = { active: PropTypes.bool, id: PropTypes.number.isRequired, children: PropTypes.node, }; HostReportsToShowCell.defaultProps = { active: false, children: null, }; export default HostReportsToShowCell;
Version data entries
5 entries across 5 versions & 1 rubygems