Sha256: 2056cd0a252067792d99a796eb8976e6a78779784a5f372c401008207468322a
Contents?: true
Size: 628 Bytes
Versions: 12
Compression:
Stored size: 628 Bytes
Contents
import React from 'react'; import { Button } from 'patternfly-react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { noop } from 'foremanReact/common/helpers'; export const ResumeButton = ({ id, name, disabled, onClick }) => ( <Button bsSize="small" onClick={() => onClick(id, name)} disabled={disabled}> {__('Resume')} </Button> ); ResumeButton.propTypes = { id: PropTypes.string.isRequired, name: PropTypes.string.isRequired, onClick: PropTypes.func, disabled: PropTypes.bool, }; ResumeButton.defaultProps = { disabled: false, onClick: noop, };
Version data entries
12 entries across 12 versions & 1 rubygems