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