replce isSigner variable name to isGuestSigner

This commit is contained in:
RaktimaNXG
2023-11-09 14:23:56 +05:30
parent 5fa60d8135
commit 5ba1f79f3b
4 changed files with 13 additions and 13 deletions
@@ -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 */}