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..61b0f435f3 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,62 @@ 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.getElementById( + "create-edit-migration-wave-modal" + ) as HTMLElement + } /> - - - - 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} - /> - )} + )} + /> + + + ( + { + 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} /> - - - + )} + /> + { what: t("terms.migrationWave").toLowerCase(), }) } - variant={ModalVariant.small} + variant={ModalVariant.medium} isOpen={isWaveModalOpen} onClose={closeWaveModal} + style={{ minHeight: "62vh" }} >