chore: draft onBlur and unmount

Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
This commit is contained in:
Adithya Krishna
2024-04-29 01:17:32 +05:30
parent 713cd09a06
commit 5f2eac9b5d
4 changed files with 24 additions and 0 deletions

View File

@ -224,6 +224,10 @@ export const EditDocumentForm = ({
}
};
const setSubjectFormFields = (subject?: string, message?: string) => {
// Add functionality here
};
const onAddFieldsFormSubmit = async (data: TAddFieldsFormSchema) => {
try {
await addFields({
@ -359,6 +363,7 @@ export const EditDocumentForm = ({
fields={fields}
onSubmit={onAddSubjectFormSubmit}
isDocumentPdfLoaded={isDocumentPdfLoaded}
setSubjectFormFields={setSubjectFormFields}
/>
</Stepper>
</DocumentFlowFormContainer>