put FormGroup component in form instead of in AnsibleSelect component

This commit is contained in:
John Mitchell
2019-02-13 15:40:46 -05:00
parent f2ab7f62b9
commit b4007c7e04
2 changed files with 14 additions and 17 deletions

View File

@@ -135,14 +135,14 @@ class OrganizationAdd extends React.Component {
</FormGroup>
<ConfigContext.Consumer>
{({ custom_virtualenvs }) => (
<AnsibleSelect
fieldId="add-org-form-virtual-env"
labelName="Ansible Environment"
name="custom_virtualenv"
value={custom_virtualenv}
onChange={this.onFieldChange}
data={custom_virtualenvs}
/>
<FormGroup label="Ansible Environment" fieldId="add-org-form-custom-virtualenv">
<AnsibleSelect
name="custom_virtualenv"
value={custom_virtualenv}
onChange={this.onFieldChange}
data={custom_virtualenvs}
/>
</FormGroup>
)}
</ConfigContext.Consumer>
</Gallery>