mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
move FormField label proptype check to FormField component
This commit is contained in:
parent
44cd199078
commit
0aba4c36af
@ -172,11 +172,11 @@ function OrganizationForm({
|
||||
setInstanceGroups={setInstanceGroups}
|
||||
{...rest}
|
||||
/>
|
||||
<FormSubmitError error={submitError} />
|
||||
<FormActionGroup
|
||||
onCancel={handleCancel}
|
||||
onSubmit={formik.handleSubmit}
|
||||
/>
|
||||
<FormSubmitError error={submitError} />
|
||||
<FormActionGroup
|
||||
onCancel={handleCancel}
|
||||
onSubmit={formik.handleSubmit}
|
||||
/>
|
||||
</FormColumnLayout>
|
||||
</Form>
|
||||
)}
|
||||
@ -184,10 +184,6 @@ function OrganizationForm({
|
||||
);
|
||||
}
|
||||
|
||||
FormField.propTypes = {
|
||||
label: PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired,
|
||||
};
|
||||
|
||||
OrganizationForm.propTypes = {
|
||||
organization: PropTypes.shape(),
|
||||
onSubmit: PropTypes.func.isRequired,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user