Sha256: bf38ba3c0b491c277cdbf1e30d0b8d5c679a47de50d137bd2b248b9f8df6a2e7
Contents?: true
Size: 751 Bytes
Versions: 6
Compression:
Stored size: 751 Bytes
Contents
import React, { useState } from 'react'; import { FormGroup, Radio } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; export const ScheduleType = () => { const [isFuture, setIsFuture] = useState(false); return ( <FormGroup label={__('Schedule type')} fieldId="schedule-type"> <Radio isChecked={!isFuture} name="schedule-type" onChange={() => setIsFuture(false)} id="schedule-type-now" label={__('Execute now')} /> <Radio isChecked={isFuture} name="schedule-type" onChange={() => setIsFuture(true)} id="schedule-type-future" label={__('Schedule for future execution')} /> </FormGroup> ); };
Version data entries
6 entries across 6 versions & 1 rubygems