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:
softwarefactory-project-zuul[bot] 2020-03-30 20:47:08 +00:00 committed by GitHub
commit d7f117e83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
);
}