From 21a92176b9c37b0be2d29b8166543ba220a91fa1 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Thu, 20 Feb 2020 17:00:23 -0500 Subject: [PATCH] Update NodeTypeStep form to new FormLayout components --- awx/ui_next/src/components/DetailList/Detail.jsx | 2 +- .../Modals/NodeModals/NodeTypeStep/NodeTypeStep.jsx | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/awx/ui_next/src/components/DetailList/Detail.jsx b/awx/ui_next/src/components/DetailList/Detail.jsx index aad6447bcb..0a71488de8 100644 --- a/awx/ui_next/src/components/DetailList/Detail.jsx +++ b/awx/ui_next/src/components/DetailList/Detail.jsx @@ -38,7 +38,7 @@ const Detail = ({ className, dataCy, alwaysVisible, - isEncrypted + isEncrypted, }) => { if (!value && typeof value !== 'number' && !alwaysVisible) { return null; diff --git a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.jsx b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.jsx index 706207d046..bc54b626d8 100644 --- a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.jsx +++ b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/NodeTypeStep.jsx @@ -5,7 +5,7 @@ import { func, number, shape, string } from 'prop-types'; import styled from 'styled-components'; import { Formik, Field } from 'formik'; import { Form, FormGroup, TextInput } from '@patternfly/react-core'; -import FormRow from '@components/FormRow'; +import { FormFullWidthLayout } from '@components/FormLayout'; import AnsibleSelect from '@components/AnsibleSelect'; import InventorySourcesList from './InventorySourcesList'; import JobTemplatesList from './JobTemplatesList'; @@ -119,7 +119,7 @@ function NodeTypeStep({ > {() => (
- + {({ field, form }) => { const isValid = @@ -149,8 +149,6 @@ function NodeTypeStep({ ); }} - - {({ field }) => ( )} - - - +
)}