Skip to content

🔥 The free & Open Source DocuSign alternative

replce isSigner variable name to isGuestSigner

RaktimaNXG5ba1f79f3b00
diff --git a/microfrontends/SignDocuments/src/Component/component/header.js b/microfrontends/SignDocuments/src/Component/component/header.js
index 56c1a4872..94f7fa68f 100644
--- a/microfrontends/SignDocuments/src/Component/component/header.js
+++ b/microfrontends/SignDocuments/src/Component/component/header.js
@@ -37,7 +37,7 @@ function Header({
}) {
const isMobile = window.innerWidth < 767;
const navigate = useNavigate();
- const isSigner = localStorage.getItem("isSigner");
+ const isGuestSigner = localStorage.getItem("isGuestSigner");
//for go to previous page
function previousPage() {
changePage(-1);
@@ -81,15 +81,15 @@ function Header({
return (
<div
- style={{ padding: !isSigner && "5px 0px 5px 0px" }}
+ style={{ padding: !isGuestSigner && "5px 0px 5px 0px" }}
className="mobileHead"
>
{isMobile && isShowHeader ? (
<div
id="navbar"
- className={isSigner ? "stickySignerHead" : "stickyHead"}
+ className={isGuestSigner ? "stickySignerHead" : "stickyHead"}
style={{
- width: isSigner ? window.innerWidth : window.innerWidth - 30 + "px"
+ width: isGuestSigner ? window.innerWidth : window.innerWidth - 30 + "px"
}}
>
<div className="preBtn2">
diff --git a/microfrontends/SignDocuments/src/Component/component/renderPdf.js b/microfrontends/SignDocuments/src/Component/component/renderPdf.js
index 2cef62af8..62aba99d1 100644
--- a/microfrontends/SignDocuments/src/Component/component/renderPdf.js
+++ b/microfrontends/SignDocuments/src/Component/component/renderPdf.js
@@ -42,8 +42,8 @@ function RenderPdf({
const isMobile = window.innerWidth < 767;
const newWidth = window.innerWidth;
const scale = isMobile ? pdfOriginalWidth / newWidth : 1;
- //check isSigner is present in local if yes than handle login flow header in mobile view
- const isSigner = localStorage.getItem("isSigner");
+ //check isGuestSigner is present in local if yes than handle login flow header in mobile view
+ const isGuestSigner = localStorage.getItem("isGuestSigner");
//function for render placeholder block over pdf document
@@ -239,7 +239,7 @@ function RenderPdf({
<div
style={{
border: "0.1px solid #ebe8e8",
- marginTop: isSigner && "30px"
+ marginTop: isGuestSigner && "30px"
}}
ref={drop}
id="container"
diff --git a/microfrontends/SignDocuments/src/Component/login.js b/microfrontends/SignDocuments/src/Component/login.js
index 9d8e692f5..8050485c3 100644
--- a/microfrontends/SignDocuments/src/Component/login.js
+++ b/microfrontends/SignDocuments/src/Component/login.js
@@ -106,8 +106,8 @@ function Login() {
localStorage.setItem("UserInformation", JSON.stringify(_user));
localStorage.setItem("username", _user.name);
localStorage.setItem("accesstoken", _user.sessionToken);
- //save isSigner true in local to handle login flow header in mobile view
- localStorage.setItem("isSigner", true);
+ //save isGuestSigner true in local to handle login flow header in mobile view
+ localStorage.setItem("isGuestSigner", true);
setLoading(false);
navigate(
`/loadmf/signmicroapp/recipientSignPdf/${id}/${contactBookId}`
diff --git a/microfrontends/SignDocuments/src/Component/recipientSignPdf.js b/microfrontends/SignDocuments/src/Component/recipientSignPdf.js
index 215f26cea..d34dcf963 100644
--- a/microfrontends/SignDocuments/src/Component/recipientSignPdf.js
+++ b/microfrontends/SignDocuments/src/Component/recipientSignPdf.js
@@ -74,8 +74,8 @@ function EmbedPdfImage() {
return object.pageNumber === pageNumber;
});
const divRef = useRef(null);
- //check isSigner is present in local if yes than handle login flow header in mobile view
- const isSigner = localStorage.getItem("isSigner");
+ //check isGuestSigner is present in local if yes than handle login flow header in mobile view
+ const isGuestSigner = localStorage.getItem("isGuestSigner");
useEffect(() => {
const clientWidth = window.innerWidth;
const pdfWidth = clientWidth - 160 - 220 - 30;
@@ -1011,8 +1011,8 @@ function EmbedPdfImage() {
{/* pdf render view */}
<div
style={{
- marginLeft: !isSigner && pdfOriginalWidth > 500 && "20px",
- marginRight: !isSigner && pdfOriginalWidth > 500 && "20px"
+ marginLeft: !isGuestSigner && pdfOriginalWidth > 500 && "20px",
+ marginRight: !isGuestSigner && pdfOriginalWidth > 500 && "20px"
}}
>
{/* this modal is used show this document is already sign */}