mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Merge pull request #6448 from AlexSCorey/6446-HostAdd
Fixes HostAdd Form layout issue Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
d7f117e83f
@ -3,6 +3,7 @@ import { useHistory } from 'react-router-dom';
|
||||
import { CardBody } from '@components/Card';
|
||||
import HostForm from '@components/HostForm';
|
||||
import { HostsAPI } from '@api';
|
||||
import { PageSection, Card } from '@patternfly/react-core';
|
||||
|
||||
function HostAdd() {
|
||||
const [formError, setFormError] = useState(null);
|
||||
@ -22,13 +23,17 @@ function HostAdd() {
|
||||
};
|
||||
|
||||
return (
|
||||
<CardBody>
|
||||
<HostForm
|
||||
handleSubmit={handleSubmit}
|
||||
handleCancel={handleCancel}
|
||||
submitError={formError}
|
||||
/>
|
||||
</CardBody>
|
||||
<PageSection>
|
||||
<Card>
|
||||
<CardBody>
|
||||
<HostForm
|
||||
handleSubmit={handleSubmit}
|
||||
handleCancel={handleCancel}
|
||||
submitError={formError}
|
||||
/>
|
||||
</CardBody>
|
||||
</Card>
|
||||
</PageSection>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user