Sha256: a088e33a0bb5f9e686299d55d992e83e592f488aca4f43d1b3b7974703d54b7e
Contents?: true
Size: 801 Bytes
Versions: 36
Compression:
Stored size: 801 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { TextInput, FormGroup } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import { helpLabel } from '../form/FormHelpers'; export const PurposeField = ({ purpose, setPurpose }) => ( <FormGroup label={__('Purpose')} labelIcon={helpLabel( __( 'A special label for tracking a recurring job. There can be only one active job with a given purpose at a time.' ) )} > <TextInput aria-label="purpose" type="text" value={purpose} onChange={newPurpose => { setPurpose(newPurpose); }} /> </FormGroup> ); PurposeField.propTypes = { purpose: PropTypes.string.isRequired, setPurpose: PropTypes.func.isRequired, };
Version data entries
36 entries across 36 versions & 1 rubygems