import * as React from 'react'; import { Form, PageSection } from '@patternfly/react-core'; import { FormikProps, useField } from 'formik'; import isEmpty from 'lodash-es/isEmpty'; import { InputField, SwitchField } from '~/shared/components/formik-base'; import HelpPopover from '../../../../components/HelpPopover'; import PageLayout from '../../../../components/PageLayout/PageLayout'; import { ApplicationDropdown } from '../../../../components/Secrets/SecretsForm/ApplicationDropdown'; import { FormFooter } from '../../../../shared'; import KeyValueField from '../../../../shared/components/formik-fields/key-value-input-field/KeyValueInputField'; import { useNamespace } from '../../../../shared/providers/Namespace'; import { getReleasePlanFormBreadcrumbs, ReleasePlanFormValues } from './form-utils'; import { RunReleasePipelineSection } from './RunReleasePipelineSection'; type Props = FormikProps & { edit?: boolean; }; export const ReleasePlanForm: React.FC = ({ handleSubmit, handleReset, isSubmitting, dirty, errors, status, edit, }) => { const namespace = useNamespace(); const [{ value: labels }] = useField('labels'); return ( } >
} /> } />
); };