mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-03 02:28:44 +02:00
fix: increase time to show confetti celebration
This commit is contained in:
@@ -19,6 +19,7 @@ function GuestLogin() {
|
||||
const [appLogo, setAppLogo] = useState("");
|
||||
const [documentId, setDocumentId] = useState(id);
|
||||
const [contactId, setContactId] = useState(contactBookId);
|
||||
const [sendMail, setSendMail] = useState();
|
||||
useEffect(() => {
|
||||
handleServerUrl();
|
||||
|
||||
@@ -54,6 +55,7 @@ function GuestLogin() {
|
||||
setDocumentId(checkSplit[0]);
|
||||
setEmail(checkSplit[1]);
|
||||
setContactId(checkSplit[2]);
|
||||
setSendMail(checkSplit[3]);
|
||||
}
|
||||
|
||||
setIsLoading(false);
|
||||
@@ -146,7 +148,13 @@ function GuestLogin() {
|
||||
//save isGuestSigner true in local to handle login flow header in mobile view
|
||||
localStorage.setItem("isGuestSigner", true);
|
||||
setLoading(false);
|
||||
navigate(`/load/recipientSignPdf/${documentId}/${contactId}`);
|
||||
if (sendMail === "false") {
|
||||
navigate(
|
||||
`/load/recipientSignPdf/${documentId}/${contactId}?sendmail=${sendMail}`
|
||||
);
|
||||
} else {
|
||||
navigate(`/load/recipientSignPdf/${documentId}/${contactId}`);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log("err ", error);
|
||||
|
||||
@@ -431,7 +431,7 @@ function PdfRequestFiles() {
|
||||
setIsCelebration(true);
|
||||
setTimeout(() => {
|
||||
setIsCelebration(false);
|
||||
}, 2500);
|
||||
}, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1000,7 +1000,7 @@ function PlaceHolderSign() {
|
||||
const hostUrl = window.location.origin;
|
||||
//encode this url value `${pdfDetails?.[0].objectId}/${signerMail[i].Email}/${objectId}` to base64 using `btoa` function
|
||||
const encodeBase64 = btoa(
|
||||
`${pdfDetails?.[0].objectId}/${signerMail[i].Email}/${objectId}`
|
||||
`${pdfDetails?.[0].objectId}/${signerMail[i].Email}/${objectId}/false`
|
||||
);
|
||||
let signPdf = `${hostUrl}/login/${encodeBase64}`;
|
||||
shareLinkList.push({ signerEmail: signerMail[i].Email, url: signPdf });
|
||||
|
||||
@@ -235,7 +235,7 @@ function SignYourSelf() {
|
||||
setSignBtnPosition([]);
|
||||
setTimeout(() => {
|
||||
setIsCelebration(false);
|
||||
}, 2500);
|
||||
}, 5000);
|
||||
}
|
||||
}
|
||||
} else if (
|
||||
|
||||
Reference in New Issue
Block a user