fix: ip address missing of document originator using public-sign

This commit is contained in:
RaktimaNXG
2024-07-26 14:06:47 +05:30
parent 76a11f6ee6
commit b8d6ec5fe0
5 changed files with 57 additions and 17 deletions
+18 -15
View File
@@ -1591,6 +1591,17 @@ function PdfRequestFiles(props) {
alert("Please Enter OTP!");
}
};
const handleCloseOtp = () => {
setIsPublicContact(false);
setLoading(false);
setIsOtp(false);
setOtp();
setContact({
name: "",
email: "",
phone: ""
});
};
return (
<DndProvider backend={HTML5Backend}>
@@ -1720,16 +1731,18 @@ function PdfRequestFiles(props) {
<ModalUi
isOpen={isPublicContact}
title={"Contact Details"}
title={isOtp ? "Verify email" : "Contact Details"}
handleClose={() => {
setIsPublicContact(false);
handleCloseOtp();
}}
>
<div className="h-full p-[20px]">
{isOtp ? (
<form onSubmit={VerifyOTP}>
<div className="flex flex-col gap-2">
<span>You will get a OTP via Email</span>
<span>
You will get a verification code via email
</span>
<label className="op-input op-input-bordered flex items-center gap-2 ">
<input
type="number"
@@ -1748,16 +1761,7 @@ function PdfRequestFiles(props) {
<button
className="op-btn op-btn-ghost"
onClick={() => {
// document.getElementById("my_modal").close();
setIsPublicContact(false);
setLoading(false);
setIsOtp(false);
setOtp();
setContact({
name: "",
email: "",
phone: ""
});
handleCloseOtp();
}}
>
Cancel
@@ -1841,8 +1845,7 @@ function PdfRequestFiles(props) {
<button
className="op-btn op-btn-ghost"
onClick={() => {
// document.getElementById("my_modal").close();
setIsPublicContact(false);
handleCloseOtp();
}}
>
Close