fix: resend mail not working

This commit is contained in:
prafull-opensignlabs
2024-05-22 19:19:33 +05:30
parent 71016ba5e0
commit d75c1d7c0c
@@ -551,6 +551,7 @@ const ReportTable = (props) => {
};
const handleResendMail = async (e, doc, user) => {
e.preventDefault();
console.log("first");
setActLoader({ [user.objectId]: true });
const url = `${localStorage.getItem("baseUrl")}functions/sendmailv3`;
const headers = {
@@ -955,20 +956,22 @@ const ReportTable = (props) => {
onSubmit={(e) =>
handleResendMail(e, item, user)
}
className="w-full flex flex-col gap-2 p-3 text-black"
className="w-full flex flex-col gap-2 p-3 text-black relative"
>
<div className="absolute right-5 text-xs z-40">
<Tooltip
id={`${user.objectId}_help`}
message={
"You can use following variables which will get replaced with their actual values:- {{document_title}}, {{sender_name}}, {{sender_mail}}, {{sender_phone}}, {{receiver_name}}, {{receiver_email}}, {{receiver_phone}}, {{expiry_date}}, {{company_name}}, {{signing_url}}."
}
/>
</div>
<div>
<label
className="text-xs ml-1"
htmlFor="mailsubject"
>
Subject{" "}
<Tooltip
id={isNextStep[user.objectId]}
message={
"You can use following variables which will get replaced with their actual values:- {{document_title}}, {{sender_name}}, {{sender_mail}}, {{sender_phone}}, {{receiver_name}}, {{receiver_email}}, {{receiver_phone}}, {{expiry_date}}, {{company_name}}, {{signing_url}}."
}
/>
</label>
<input
id="mailsubject"
@@ -989,12 +992,6 @@ const ReportTable = (props) => {
htmlFor="mailbody"
>
Body{" "}
<Tooltip
id={isNextStep[user.objectId]}
message={
"You can use following variables which will get replaced with their actual values:- {{document_title}}, {{sender_name}}, {{sender_mail}}, {{sender_phone}}, {{receiver_name}}, {{receiver_email}}, {{receiver_phone}}, {{expiry_date}}, {{company_name}}, {{signing_url}}."
}
/>
</label>
<EditorToolbar containerId="toolbar1" />
<ReactQuill