Sha256: 23900272ed9bc4a533b18b50104cb85dfc3b6ca96a8e1bfae96964b35fa8f1d9
Contents?: true
Size: 824 Bytes
Versions: 17
Compression:
Stored size: 824 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 ouiaId="purpose" 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
17 entries across 17 versions & 1 rubygems