mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 17:21:41 +10:00
chore: refactor
This commit is contained in:
@ -241,7 +241,6 @@ export const DocumentSigningCheckboxField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
}
|
||||
}, [checkedValues, isLengthConditionMet, field.inserted]);
|
||||
|
||||
@ -148,7 +148,6 @@ export const DocumentSigningDropdownField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
}
|
||||
}, [localChoice]);
|
||||
@ -158,7 +157,6 @@ export const DocumentSigningDropdownField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
|
||||
@ -91,7 +91,6 @@ export const DocumentSigningFieldContainer = ({
|
||||
// Do nothing since the user should be redirected.
|
||||
},
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
|
||||
return;
|
||||
@ -109,7 +108,6 @@ export const DocumentSigningFieldContainer = ({
|
||||
await executeActionAuthProcedure({
|
||||
onReauthFormSubmit: onSign,
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -120,7 +120,6 @@ export const DocumentSigningForm = ({
|
||||
try {
|
||||
await executeActionAuthProcedure({
|
||||
actionTarget: 'DOCUMENT',
|
||||
isEnterprise,
|
||||
onReauthFormSubmit: async (authOptions) => {
|
||||
await completeDocument(authOptions, nextSigner);
|
||||
},
|
||||
@ -241,7 +240,6 @@ export const DocumentSigningForm = ({
|
||||
onSignatureComplete={async (nextSigner) => {
|
||||
await executeActionAuthProcedure({
|
||||
actionTarget: 'DOCUMENT',
|
||||
isEnterprise,
|
||||
onReauthFormSubmit: async (authOptions) => {
|
||||
await completeDocument(authOptions, nextSigner);
|
||||
},
|
||||
@ -427,7 +425,6 @@ export const DocumentSigningForm = ({
|
||||
onSignatureComplete={async (nextSigner) => {
|
||||
await executeActionAuthProcedure({
|
||||
actionTarget: 'DOCUMENT',
|
||||
isEnterprise,
|
||||
onReauthFormSubmit: async (authOptions) => {
|
||||
await completeDocument(authOptions, nextSigner);
|
||||
},
|
||||
|
||||
@ -85,7 +85,6 @@ export const DocumentSigningNameField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions, localFullName),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -112,7 +112,6 @@ export const DocumentSigningNumberField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
};
|
||||
|
||||
@ -223,7 +222,6 @@ export const DocumentSigningNumberField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
|
||||
@ -144,7 +144,6 @@ export const DocumentSigningRadioField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
}
|
||||
}, [selectedOption, field]);
|
||||
|
||||
@ -110,7 +110,6 @@ export const DocumentSigningSignatureField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions, localSignature),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -124,7 +124,6 @@ export const DocumentSigningTextField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
};
|
||||
|
||||
@ -218,7 +217,6 @@ export const DocumentSigningTextField = ({
|
||||
void executeActionAuthProcedure({
|
||||
onReauthFormSubmit: async (authOptions) => await onSign(authOptions),
|
||||
actionTarget: field.type,
|
||||
isEnterprise,
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
|
||||
@ -152,7 +152,7 @@ export const TemplateEditForm = ({
|
||||
|
||||
toast({
|
||||
title: _(msg`Error`),
|
||||
description: _(msg`An error occurred while updating the document settings.`),
|
||||
description: _(msg`An error occurred while updating the template settings.`),
|
||||
variant: 'destructive',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user