Skip to content

Commit 5ba1f79

Browse files
replce isSigner variable name to isGuestSigner
1 parent 5fa60d8 commit 5ba1f79

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

microfrontends/SignDocuments/src/Component/component/header.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Header({
3737
}) {
3838
const isMobile = window.innerWidth < 767;
3939
const navigate = useNavigate();
40-
const isSigner = localStorage.getItem("isSigner");
40+
const isGuestSigner = localStorage.getItem("isGuestSigner");
4141
//for go to previous page
4242
function previousPage() {
4343
changePage(-1);
@@ -81,15 +81,15 @@ function Header({
8181

8282
return (
8383
<div
84-
style={{ padding: !isSigner && "5px 0px 5px 0px" }}
84+
style={{ padding: !isGuestSigner && "5px 0px 5px 0px" }}
8585
className="mobileHead"
8686
>
8787
{isMobile && isShowHeader ? (
8888
<div
8989
id="navbar"
90-
className={isSigner ? "stickySignerHead" : "stickyHead"}
90+
className={isGuestSigner ? "stickySignerHead" : "stickyHead"}
9191
style={{
92-
width: isSigner ? window.innerWidth : window.innerWidth - 30 + "px"
92+
width: isGuestSigner ? window.innerWidth : window.innerWidth - 30 + "px"
9393
}}
9494
>
9595
<div className="preBtn2">

microfrontends/SignDocuments/src/Component/component/renderPdf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ function RenderPdf({
4242
const isMobile = window.innerWidth < 767;
4343
const newWidth = window.innerWidth;
4444
const scale = isMobile ? pdfOriginalWidth / newWidth : 1;
45-
//check isSigner is present in local if yes than handle login flow header in mobile view
46-
const isSigner = localStorage.getItem("isSigner");
45+
//check isGuestSigner is present in local if yes than handle login flow header in mobile view
46+
const isGuestSigner = localStorage.getItem("isGuestSigner");
4747

4848
//function for render placeholder block over pdf document
4949

@@ -239,7 +239,7 @@ function RenderPdf({
239239
<div
240240
style={{
241241
border: "0.1px solid #ebe8e8",
242-
marginTop: isSigner && "30px"
242+
marginTop: isGuestSigner && "30px"
243243
}}
244244
ref={drop}
245245
id="container"

microfrontends/SignDocuments/src/Component/login.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ function Login() {
106106
localStorage.setItem("UserInformation", JSON.stringify(_user));
107107
localStorage.setItem("username", _user.name);
108108
localStorage.setItem("accesstoken", _user.sessionToken);
109-
//save isSigner true in local to handle login flow header in mobile view
110-
localStorage.setItem("isSigner", true);
109+
//save isGuestSigner true in local to handle login flow header in mobile view
110+
localStorage.setItem("isGuestSigner", true);
111111
setLoading(false);
112112
navigate(
113113
`/loadmf/signmicroapp/recipientSignPdf/${id}/${contactBookId}`

microfrontends/SignDocuments/src/Component/recipientSignPdf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ function EmbedPdfImage() {
7474
return object.pageNumber === pageNumber;
7575
});
7676
const divRef = useRef(null);
77-
//check isSigner is present in local if yes than handle login flow header in mobile view
78-
const isSigner = localStorage.getItem("isSigner");
77+
//check isGuestSigner is present in local if yes than handle login flow header in mobile view
78+
const isGuestSigner = localStorage.getItem("isGuestSigner");
7979
useEffect(() => {
8080
const clientWidth = window.innerWidth;
8181
const pdfWidth = clientWidth - 160 - 220 - 30;
@@ -1011,8 +1011,8 @@ function EmbedPdfImage() {
10111011
{/* pdf render view */}
10121012
<div
10131013
style={{
1014-
marginLeft: !isSigner && pdfOriginalWidth > 500 && "20px",
1015-
marginRight: !isSigner && pdfOriginalWidth > 500 && "20px"
1014+
marginLeft: !isGuestSigner && pdfOriginalWidth > 500 && "20px",
1015+
marginRight: !isGuestSigner && pdfOriginalWidth > 500 && "20px"
10161016
}}
10171017
>
10181018
{/* this modal is used show this document is already sign */}

0 commit comments

Comments
 (0)