Skip to content

Commit

Permalink
chore: remove changes to FE code - will be addressed in subsequent PR
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-williams committed Dec 17, 2024
1 parent e0a8bbc commit 7a4c9c9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 184 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
RegistrationPurposeHelpText,
RegistrationPurposes,
} from "@/registration/app/components/operations/registration/enums";
import ChangeRegistrationPurposeModal from "@/registration/app/components/operations/registration/ChangeRegistrationPurposeModal";

interface OperationInformationFormProps {
rawFormData: OperationInformationFormData;
Expand Down Expand Up @@ -130,32 +129,26 @@ const OperationInformationForm = ({
};

return (
<>
<ChangeRegistrationPurposeModal />
<MultiStepBase
key={key}
cancelUrl="/"
formData={formState}
onSubmit={handleSubmit}
schema={schema}
step={step}
steps={steps}
error={error}
onChange={(e: IChangeEvent) => {
let newSelectedOperation = e.formData?.section1?.operation;
let newSelectedPurpose = e.formData?.section1?.registration_purpose;
if (
newSelectedOperation &&
newSelectedOperation !== selectedOperation
)
handleSelectOperationChange(e.formData);
if (newSelectedPurpose !== selectedPurpose)
handleSelectedPurposeChange(e.formData);
}}
uiSchema={currentUiSchema}
customValidate={customValidate}
/>
</>
<MultiStepBase
key={key}
cancelUrl="/"
formData={formState}
onSubmit={handleSubmit}
schema={schema}
step={step}
steps={steps}
error={error}
onChange={(e: IChangeEvent) => {
let newSelectedOperation = e.formData?.section1?.operation;
let newSelectedPurpose = e.formData?.section1?.registration_purpose;
if (newSelectedOperation && newSelectedOperation !== selectedOperation)
handleSelectOperationChange(e.formData);
if (newSelectedPurpose !== selectedPurpose)
handleSelectedPurposeChange(e.formData);
}}
uiSchema={currentUiSchema}
customValidate={customValidate}
/>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import OperationInformationForm from "apps/registration/app/components/operation
import { UUID } from "crypto";
import { validate as isValidUUID } from "uuid";
import { OperationInformationFormData } from "./types";
import Modal from "@/libs/components/src/modal";

const OperationInformationPage = async ({
step,
Expand All @@ -24,7 +23,7 @@ const OperationInformationPage = async ({
throw new Error("Failed to fetch operation data");
return (
<OperationInformationForm
rawFormData={{}}
rawFormData={formData}
schema={await createRegistrationOperationInformationSchema()}
step={step}
steps={steps}
Expand Down

0 comments on commit 7a4c9c9

Please sign in to comment.