mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
move FormField label proptype check to FormField component
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user