From 375db82c84d94fd6d41a266d547f24467a93d052 Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Wed, 22 Nov 2023 16:43:08 -0500 Subject: [PATCH] :bug: Update migration wave form & modal styles (#1563) Resolves https://issues.redhat.com/browse/MTA-742 --------- Signed-off-by: ibolton336 --- .../components/migration-wave-form.tsx | 122 ++++++++---------- .../pages/migration-waves/migration-waves.tsx | 2 +- 2 files changed, 58 insertions(+), 66 deletions(-) diff --git a/client/src/app/pages/migration-waves/components/migration-wave-form.tsx b/client/src/app/pages/migration-waves/components/migration-wave-form.tsx index 337d071c8c..3788539a75 100644 --- a/client/src/app/pages/migration-waves/components/migration-wave-form.tsx +++ b/client/src/app/pages/migration-waves/components/migration-wave-form.tsx @@ -11,8 +11,6 @@ import { Grid, GridItem, DatePicker, - Level, - LevelItem, } from "@patternfly/react-core"; import { useFetchStakeholders } from "@app/queries/stakeholders"; @@ -289,71 +287,65 @@ export const WaveForm: React.FC = ({ fieldId="name" /> - - - - ( - { - onChange(val); - trigger("endDateStr"); // Validation of endDateStr depends on startDateStr - }} - placeholder="MM/DD/YYYY" - value={value} - dateFormat={(val) => dayjs(val).format("MM/DD/YYYY")} - dateParse={(val) => dayjs(val).toDate()} - validators={[startDateRangeValidator]} - appendTo={() => - document.getElementById( - "create-edit-migration-wave-modal" - ) as HTMLElement - } - /> - )} + + ( + { + onChange(val); + trigger("endDateStr"); // Validation of endDateStr depends on startDateStr + }} + placeholder="MM/DD/YYYY" + value={value} + dateFormat={(val) => dayjs(val).format("MM/DD/YYYY")} + dateParse={(val) => dayjs(val).toDate()} + validators={[startDateRangeValidator]} + appendTo={() => document.body} /> - - - - to - - - - ( - { - onChange(val); - }} - placeholder="MM/DD/YYYY" - value={value} - dateFormat={(val) => dayjs(val).format("MM/DD/YYYY")} - dateParse={(val) => dayjs(val).toDate()} - validators={[endDateRangeValidator]} - appendTo={() => - document.getElementById( - "create-edit-migration-wave-modal" - ) as HTMLElement - } - isDisabled={!!formErrors.startDateStr} - /> - )} + )} + /> + + + to + + + + ( + { + onChange(val); + }} + placeholder="MM/DD/YYYY" + value={value} + dateFormat={(val) => dayjs(val).format("MM/DD/YYYY")} + dateParse={(val) => dayjs(val).toDate()} + validators={[endDateRangeValidator]} + appendTo={() => document.body} + isDisabled={!!formErrors.startDateStr} /> - - - + )} + /> + { what: t("terms.migrationWave").toLowerCase(), }) } - variant={ModalVariant.small} + variant={ModalVariant.medium} isOpen={isWaveModalOpen} onClose={closeWaveModal} >