diff --git a/microfrontends/SignDocuments/src/Component/SignYourselfPdf.js b/microfrontends/SignDocuments/src/Component/SignYourselfPdf.js
index 2d5bb3b2b..f955a6fd3 100644
--- a/microfrontends/SignDocuments/src/Component/SignYourselfPdf.js
+++ b/microfrontends/SignDocuments/src/Component/SignYourselfPdf.js
@@ -75,6 +75,7 @@ function SignYourSelf() {
const [tourStatus, setTourStatus] = useState([]);
const [noData, setNoData] = useState(false);
const [contractName, setContractName] = useState("");
+ const [containerWH, setContainerWH] = useState({});
const [showAlreadySignDoc, setShowAlreadySignDoc] = useState({
status: false
});
@@ -91,6 +92,7 @@ function SignYourSelf() {
isOver: !!monitor.isOver()
})
});
+ const isMobile = window.innerWidth < 767;
const pdfRef = useRef();
@@ -178,6 +180,10 @@ function SignYourSelf() {
if (divRef.current) {
const pdfWidth = pdfNewWidthFun(divRef);
setPdfNewWidth(pdfWidth);
+ setContainerWH({
+ width: divRef.current.offsetWidth,
+ height: divRef.current.offsetHeight
+ });
}
}, [divRef.current]);
@@ -470,8 +476,10 @@ function SignYourSelf() {
pngUrl,
pdfDoc,
pdfOriginalWidth,
- true
+ true,
+ containerWH
);
+
signPdfFun(pdfBytes, documentId);
}
setIsSignPad(false);
@@ -490,9 +498,7 @@ function SignYourSelf() {
pageNo
) => {
let singleSign;
-
- const isMobile = window.innerWidth < 767;
- const newWidth = window.innerWidth - 32;
+ const newWidth = containerWH.width;
const scale = isMobile ? pdfOriginalWidth / newWidth : 1;
const imgWidth = xyPosData ? xyPosData.Width : 150;
if (xyPostion.length === 1 && xyPostion[0].pos.length === 1) {
@@ -508,9 +514,7 @@ function SignYourSelf() {
docId: documentId,
sign: {
Base64: base64Url,
- Left: isMobile
- ? xyPosData.xPosition * scale + 43
- : xyPosData.xPosition,
+ Left: isMobile ? xyPosData.xPosition * scale : xyPosData.xPosition,
Bottom: bottomY,
Width: xyPosData.Width ? xyPosData.Width * scale : 150 * scale,
Height: height * scale,
@@ -534,14 +538,13 @@ function SignYourSelf() {
})
.then((Listdata) => {
const json = Listdata.data;
- // console.log("json ", json);
+
setPdfUrl(json.result.data);
if (json.result.data) {
getDocumentDetails(false);
}
})
.catch((err) => {
- // this.setState({ loading: false });
console.log("axois err ", err);
});
};
@@ -692,60 +695,6 @@ function SignYourSelf() {
setSignBtnPosition([xySignature]);
};
- //function for resize image and update width and height
- const handleImageResize = (ref, key, direction, position) => {
- const updateFilter = xyPostion[index].pos.filter(
- (data, ind) => data.key === key && data.Width && data.Height
- );
-
- if (updateFilter.length > 0) {
- const getXYdata = xyPostion[index].pos;
- const getPosData = getXYdata;
- const addSign = getPosData.map((url, ind) => {
- if (url.key === key) {
- return {
- ...url,
- Width: ref.offsetWidth,
- Height: ref.offsetHeight,
- xPosition: position.x
- };
- }
- return url;
- });
-
- const newUpdateUrl = xyPostion.map((obj, ind) => {
- if (ind === index) {
- return { ...obj, pos: addSign };
- }
- return obj;
- });
-
- setXyPostion(newUpdateUrl);
- } else {
- const getXYdata = xyPostion[index].pos;
-
- const getPosData = getXYdata;
-
- const addSign = getPosData.map((url, ind) => {
- if (url.key === key) {
- return {
- ...url,
- Width: ref.offsetWidth,
- Height: ref.offsetHeight
- };
- }
- return url;
- });
-
- const newUpdateUrl = xyPostion.map((obj, ind) => {
- if (ind === index) {
- return { ...obj, pos: addSign };
- }
- return obj;
- });
- setXyPostion(newUpdateUrl);
- }
- };
const handleAllDelete = () => {
setXyPostion([]);
};
@@ -903,8 +852,8 @@ function SignYourSelf() {
{/* pdf render view */}
500 && "20px",
- marginRight: pdfOriginalWidth > 500 && "20px"
+ marginLeft: !isMobile && pdfOriginalWidth > 500 && "20px",
+ marginRight: !isMobile && pdfOriginalWidth > 500 && "20px"
}}
>
{/* this modal is used show this document is already sign */}
@@ -992,33 +941,36 @@ function SignYourSelf() {
setIsEmail={setIsEmail}
/>
- {/* className="hidePdf" */}
-
+ {containerWH && (
+
+ )}
diff --git a/microfrontends/SignDocuments/src/Component/component/borderResize.js b/microfrontends/SignDocuments/src/Component/component/borderResize.js
new file mode 100644
index 000000000..1596d09bb
--- /dev/null
+++ b/microfrontends/SignDocuments/src/Component/component/borderResize.js
@@ -0,0 +1,17 @@
+import React from "react";
+
+function BorderResize() {
+ return (
+
+ );
+}
+
+export default BorderResize;
diff --git a/microfrontends/SignDocuments/src/Component/component/renderPdf.js b/microfrontends/SignDocuments/src/Component/component/renderPdf.js
index c27fe6a94..8e7626d8b 100644
--- a/microfrontends/SignDocuments/src/Component/component/renderPdf.js
+++ b/microfrontends/SignDocuments/src/Component/component/renderPdf.js
@@ -3,6 +3,11 @@ import RSC from "react-scrollbars-custom";
import { Rnd } from "react-rnd";
import { themeColor } from "../../utils/ThemeColor/backColor";
import { Document, Page, pdfjs } from "react-pdf";
+import BorderResize from "./borderResize";
+import {
+ handleImageResize,
+ handleSignYourselfImageResize
+} from "../../utils/Utils";
import EmailToast from "./emailToast";
pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;
@@ -17,7 +22,6 @@ function RenderPdf({
nodeRef,
handleTabDrag,
handleStop,
- handleImageResize,
isDragging,
setIsSignPad,
setIsStamp,
@@ -37,13 +41,19 @@ function RenderPdf({
signedSigners,
setPdfLoadFail,
placeholder,
- pdfLoadFail
+ pdfLoadFail,
+ setSignerPos,
+ setXyPostion,
+ index,
+ containerWH,
+ setIsResize
}) {
const isMobile = window.innerWidth < 767;
- const newWidth = window.innerWidth;
+ const newWidth = containerWH.width;
const scale = isMobile ? pdfOriginalWidth / newWidth : 1;
//check isGuestSigner is present in local if yes than handle login flow header in mobile view
const isGuestSigner = localStorage.getItem("isGuestSigner");
+
// handle signature block width and height according to screen
const posWidth = (pos) => {
let width;
@@ -89,7 +99,7 @@ function RenderPdf({
if (isMobile) {
//if pos.isMobile false -- placeholder saved from desktop view then handle position in mobile view divided by scale
if (!pos.isMobile) {
- return pos.xPosition / scale - 20;
+ return pos.xPosition / scale - 32;
}
//pos.isMobile true -- placeholder save from mobile view(small device) handle position in mobile view(small screen) view divided by scale
else {
@@ -99,7 +109,7 @@ function RenderPdf({
//else if pos.isMobile true -- placeholder saved from mobile or tablet view then handle position in desktop view divide by scale
if (pos.isMobile) {
- return pos.scale && pos.xPosition * pos.scale + 50;
+ return pos.scale && pos.xPosition * pos.scale;
}
//else placeholder save from desktop(bigscreen) and show in desktop(bigscreen)
else {
@@ -122,7 +132,7 @@ function RenderPdf({
//else if pos.isMobile true -- placeholder saved from mobile or tablet view then handle position in desktop view divide by scale
if (pos.isMobile) {
- return pos.scale && pos.yPosition * pos.scale + 50;
+ return pos.scale && pos.yPosition * pos.scale;
}
//else placeholder save from desktop(bigscreen) and show in desktop(bigscreen)
else {
@@ -137,124 +147,103 @@ function RenderPdf({
{placeData.pageNumber === pageNumber &&
placeData.pos.map((pos, index) => {
- return pos && pos.SignUrl ? (
-
- {
- setIsSignPad(true);
- setSignKey(pos.key);
- }}
- >
-
-
![no img]()
{
+ return (
+ pos && (
+
+ {
+ handleImageResize(
+ ref,
+ pos.key,
+ data.signerObjId,
+ position,
+ signerPos,
+ pageNumber,
+ setSignerPos,
+ pdfOriginalWidth,
+ containerWH
+ );
+ }}
+ lockAspectRatio={pos.Width && 2.5}
+ default={{
+ x: xPos(pos),
+ y: yPos(pos)
+ }}
+ onClick={() => {
+ if (data.signerObjId === signerObjectId) {
setIsSignPad(true);
setSignKey(pos.key);
- }}
- src={pos.SignUrl}
- style={{
- width: "100%",
- height: "100%",
- objectFit: "contain"
- }}
- />
-
-
-
- ) : (
- {
- if (data.signerObjId === signerObjectId) {
- setIsSignPad(true);
- setSignKey(pos.key);
- setIsStamp(pos.isStamp);
- }
- }}
- style={{
- padding: "0px",
- cursor: "all-scroll",
- zIndex: 1,
- position: "absolute",
- borderStyle: "dashed",
- width: "200px",
- height: "30px",
- borderColor: themeColor(),
- background: data.blockColor,
- textAlign: "center",
- justifyContent: "center",
- borderWidth: "0.2px"
- }}
- default={{
- x: xPos(pos),
- y: yPos(pos)
- }}
- size={{
- width: posWidth(pos),
- height: posHeight(pos)
- }}
- lockAspectRatio={pos.Width ? pos.Width / pos.Height : 2.5}
- >
-
+
+ {data.signerObjId === signerObjectId && (
+
+ )}
+ {pos.SignUrl ? (
+
![no img]()
{
+ setIsSignPad(true);
+ setSignKey(pos.key);
+ }}
+ src={pos.SignUrl}
+ style={{
+ width: "100%",
+ height: "100%",
+ objectFit: "contain"
+ }}
+ />
+ ) : (
+ pdfDetails[0].Signers.map((signerData, key) => {
+ return (
+ signerData.objectId === data.signerObjId && (
+
- {pos.isStamp ? "stamp" : "signature"}
-
-
+ marginTop: "0px"
+ }}
+ >
+ {signerData.Name}
+
+ )
+ );
+ })
+ )}
+
+
+
+ )
);
})}
@@ -263,6 +252,16 @@ function RenderPdf({
);
};
+ //handled x-position in mobile view saved from big screen or small screen
+ const xPos = (pos) => {
+ //if pos.isMobile false -- placeholder saved from desktop view then handle position in mobile view divided by scale
+ if (!pos.isMobile) {
+ return pos.xPosition / scale;
+ } else {
+ return pos.xPosition * (pos.scale / scale);
+ }
+ };
+
return (
<>
{isMobile && scale ? (
@@ -285,135 +284,97 @@ function RenderPdf({
{data.pageNumber === pageNumber &&
data.pos.map((pos) => {
- return pos && pos.SignUrl ? (
- {
- setIsSignPad(true);
- setSignKey(pos.key);
- }}
- >
-
-
![no img]()
{
- setIsSignPad(true);
- setSignKey(pos.key);
- }}
- src={pos.SignUrl}
- style={{
- width: "100%",
- height: "100%",
- objectFit: "contain"
- }}
- />
-
-
- ) : (
- {
+ handleSignYourselfImageResize(
+ ref,
+ pos.key,
+ direction,
+ position,
+ xyPostion,
+ index,
+ setXyPostion,
+ pdfOriginalWidth,
+ containerWH
+ );
+ }}
+ size={{
+ width: posWidth(pos),
+ height: posHeight(pos)
+ }}
+ lockAspectRatio={
+ pos.Width ? pos.Width / pos.Height : 2.5
+ }
//if pos.isMobile false -- placeholder saved from desktop view then handle position in mobile view divide by scale
//else if pos.isMobile true -- placeholder saved from mobile or tablet view then handle position in desktop view divide by scale
- x: !pos.isMobile
- ? pos.xPosition / scale
- : pos.xPosition * (pos.scale / scale) - 50,
-
- y: !pos.isMobile
- ? pos.yPosition / scale
- : pos.yPosition * (pos.scale / scale)
- }}
- onClick={() => {
- setIsSignPad(true);
- setSignKey(pos.key);
- setIsStamp(pos.isStamp);
- }}
- >
- {
+ setIsSignPad(true);
+ setSignKey(pos.key);
}}
>
- {pos.isStamp ? "stamp" : "signature"}
-
-
+
+ {pos.SignUrl ? (
+
{
+ setIsSignPad(true);
+ setSignKey(pos.key);
+ }}
+ src={pos.SignUrl}
+ style={{
+ width: "100%",
+ height: "100%",
+ objectFit: "contain"
+ }}
+ />
+ ) : (
+
+ {pos.isStamp ? "stamp" : "signature"}
+
+ )}
+
+ )
);
})}
@@ -438,22 +399,23 @@ function RenderPdf({
placeData.pos.map((pos) => {
return (
handleTabDrag(
pos.key,
@@ -469,11 +431,6 @@ function RenderPdf({
? pos.Width / pos.Height
: 2.5
}
- resizeHandleStyles={{
- bottom: { display: "none" },
- right: { display: "none" },
- bottomRight: { display: "block" }
- }}
onDragStop={(event, dragElement) =>
handleStop(
event,
@@ -486,21 +443,33 @@ function RenderPdf({
x: pos.xPosition,
y: pos.yPosition
}}
- onResize={(
+ onResizeStart={() => {
+ setIsResize(true);
+ }}
+ onResizeStop={(
e,
direction,
ref,
delta,
position
) => {
+ e.stopPropagation();
handleImageResize(
ref,
pos.key,
data.signerObjId,
- position
+ position,
+ signerPos,
+ pageNumber,
+ setSignerPos,
+ pdfOriginalWidth,
+ containerWH,
+ setIsResize
);
}}
>
+
+
{
e.stopPropagation();
@@ -510,14 +479,9 @@ function RenderPdf({
);
}}
style={{
- position: "absolute",
- right: 0,
- display: "inline-block",
- background: themeColor(),
- cursor: "pointer",
- padding: "0px 10px",
- zIndex: 10
+ background: themeColor()
}}
+ className="placeholdCloseBtn"
>
x
@@ -526,7 +490,6 @@ function RenderPdf({
fontSize: "12px",
color: "black",
fontWeight: "600",
-
marginTop: "0px"
}}
>
@@ -546,206 +509,117 @@ function RenderPdf({
{data.pageNumber === pageNumber &&
data.pos.map((pos) => {
- return pos && pos.SignUrl ? (
- handleTabDrag(pos.key)}
- onDragStop={handleStop}
- onResize={(
- e,
- direction,
- ref,
- delta,
- position
- ) => {
- handleImageResize(
- ref,
- pos.key,
- direction,
- position
- );
- }}
- >
- {" "}
- {
- if (!isDragging) {
- setTimeout(() => {
- e.stopPropagation();
- setIsSignPad(true);
- setSignKey(pos.key);
- setIsStamp(pos.isStamp);
- }, 500);
- }
- }}
- >
-
{
- e.stopPropagation();
- handleDeleteSign(pos.key);
- setIsStamp(false);
- }}
- style={{
- position: "absolute",
- right: 0,
- display: "inline-block",
- background: themeColor(),
- cursor: "pointer",
- padding: "0px 10px"
- }}
- >
- x
-
-
-
![signimg]()
{
- setSignKey(pos.key);
- console.log("Drag 2");
- setIsSignPad(true);
- setIsStamp(pos.isStamp);
- }}
- src={pos.SignUrl}
- style={{
- width: "100%",
- height: "100%",
- objectFit: "contain"
- }}
- />
-
-
-
- ) : (
- <>
+ return (
+ pos && (
{
- handleTabDrag(pos.key, e);
- }}
- onDragStop={handleStop}
size={{
- width: pos.Width ? pos.Width : 150,
- height: pos.Height ? pos.Height : 60
+ width: pos.Width ? pos.Width : 151,
+ height: pos.Height ? pos.Height : 61
}}
default={{
x: pos.xPosition,
y: pos.yPosition
}}
+ onDrag={() => handleTabDrag(pos.key)}
+ onDragStop={handleStop}
+ onResize={(
+ e,
+ direction,
+ ref,
+ delta,
+ position
+ ) => {
+ handleSignYourselfImageResize(
+ ref,
+ pos.key,
+ direction,
+ position,
+ xyPostion,
+ index,
+ setXyPostion,
+ pdfOriginalWidth,
+ containerWH
+ );
+ }}
>
+ {" "}
{
if (!isDragging) {
setTimeout(() => {
+ e.stopPropagation();
setIsSignPad(true);
setSignKey(pos.key);
setIsStamp(pos.isStamp);
}, 500);
}
}}
- className="dragElm"
style={{
- padding: "0px",
- cursor: "all-scroll",
- zIndex: 20,
- position: "absolute",
- borderStyle: "dashed",
- width: "150px",
- height: "60px",
- borderColor: themeColor(),
- background: "#daebe0",
- textAlign: "center",
- justifyContent: "center",
- borderWidth: "0.2px",
- overflow: "hidden"
+ height: "100%"
}}
>
+
{
e.stopPropagation();
- e.preventDefault();
-
handleDeleteSign(pos.key);
setIsStamp(false);
}}
- onClick={(e) => {
- e.stopPropagation(); // Prevent further event propagation
- }}
style={{
- position: "absolute",
- right: 0,
- display: "inline-block",
- background: themeColor(),
- cursor: "pointer",
- padding: "0px 10px"
+ background: themeColor()
}}
+ className="placeholdCloseBtn"
>
x
-
- {pos.isStamp ? "stamp" : "signature"}
-
+ {pos.SignUrl ? (
+

+ ) : (
+
+ {pos.isStamp ? "stamp" : "signature"}
+
+ )}
- >
+ )
);
})}
@@ -780,8 +654,8 @@ function RenderPdf({
{
@@ -823,135 +697,99 @@ function RenderPdf({
{data.pageNumber === pageNumber &&
data.pos.map((pos) => {
- return pos && pos.SignUrl ? (
- {
- setIsSignPad(true);
- setSignKey(pos.key);
- }}
- >
-
-
![no img]()
{
- setIsSignPad(true);
- setSignKey(pos.key);
- }}
- src={pos.SignUrl}
- style={{
- width: "100%",
- height: "100%",
- objectFit: "contain"
- }}
- />
-
-
- ) : (
- {
- setIsSignPad(true);
- setSignKey(pos.key);
- setIsStamp(pos.isStamp);
- }}
- >
- {
+ handleSignYourselfImageResize(
+ ref,
+ pos.key,
+ direction,
+ position,
+ xyPostion,
+ index,
+ setXyPostion,
+ pdfOriginalWidth,
+ containerWH
+ );
+ }}
+ key={pos.key}
+ bounds="parent"
style={{
- fontSize: "12px",
- color: "black",
- fontWeight: "600",
- justifyContent: "center",
- marginTop: "0px"
+ cursor: "all-scroll",
+ borderColor: themeColor()
+ }}
+ className="placeholderBlock"
+ size={{
+ width: pos.Width ? pos.Width : 150,
+ height: pos.Height ? pos.Height : 60
+ }}
+ lockAspectRatio={pos.Width && 2.5}
+ //if pos.isMobile false -- placeholder saved from mobile view then handle position in desktop view to multiply by scale
+
+ default={{
+ x: pos.isMobile
+ ? pos.scale && pos.xPosition * pos.scale
+ : pos.xPosition,
+ y: pos.isMobile
+ ? pos.scale && pos.yPosition * pos.scale
+ : pos.yPosition
+ }}
+ onClick={() => {
+ setIsSignPad(true);
+ setSignKey(pos.key);
}}
>
- {pos.isStamp ? "stamp" : "signature"}
-
-
+
+
+ {pos.SignUrl ? (
+
![no img]()
{
+ setIsSignPad(true);
+ setSignKey(pos.key);
+ }}
+ src={pos.SignUrl}
+ style={{
+ width: "100%",
+ height: "100%",
+ objectFit: "contain"
+ }}
+ />
+ ) : (
+
+ {pos.isStamp ? "stamp" : "signature"}
+
+ )}
+
+
+ )
);
})}
@@ -977,21 +815,22 @@ function RenderPdf({
return (
handleTabDrag(
pos.key,
@@ -1007,11 +846,6 @@ function RenderPdf({
? pos.Width / pos.Height
: 2.5
}
- resizeHandleStyles={{
- bottom: { display: "none" },
- right: { display: "none" },
- bottomRight: { display: "block" }
- }}
onDragStop={(event, dragElement) =>
handleStop(
event,
@@ -1024,7 +858,10 @@ function RenderPdf({
x: pos.xPosition,
y: pos.yPosition
}}
- onResize={(
+ onResizeStart={() => {
+ setIsResize(true);
+ }}
+ onResizeStop={(
e,
direction,
ref,
@@ -1035,10 +872,17 @@ function RenderPdf({
ref,
pos.key,
data.signerObjId,
- position
+ position,
+ signerPos,
+ pageNumber,
+ setSignerPos,
+ pdfOriginalWidth,
+ containerWH,
+ setIsResize
);
}}
>
+
{
e.stopPropagation();
@@ -1048,14 +892,9 @@ function RenderPdf({
);
}}
style={{
- position: "absolute",
- right: 0,
- display: "inline-block",
- background: themeColor(),
- cursor: "pointer",
- padding: "0px 10px",
- zIndex: 10
+ background: themeColor()
}}
+ className="placeholdCloseBtn"
>
x
@@ -1086,192 +925,115 @@ function RenderPdf({
{data.pageNumber === pageNumber &&
data.pos.map((pos) => {
- return pos && pos.SignUrl ? (
- handleTabDrag(pos.key)}
- size={{
- width: pos.Width ? pos.Width : 150,
- height: pos.Height ? pos.Height : 60
- }}
- onDragStop={handleStop}
- default={{
- x: pos.xPosition,
- y: pos.yPosition
- }}
- onResize={(
- e,
- direction,
- ref,
- delta,
- position
- ) => {
- handleImageResize(
- ref,
- pos.key,
- direction,
- position
- );
- }}
- onClick={() => {
- if (!isDragging) {
- setIsSignPad(true);
- setSignKey(pos.key);
- setIsStamp(pos.isStamp);
+ return (
+ pos && (
+
- {
- e.stopPropagation();
- handleDeleteSign(pos.key);
- setIsStamp(false);
+ enableResizing={{
+ top: false,
+ right: false,
+ bottom: false,
+ left: false,
+ topRight: false,
+ bottomRight: true,
+ bottomLeft: false,
+ topLeft: false
}}
+ bounds="parent"
style={{
- position: "absolute",
- right: 0,
- display: "inline-block",
- background: themeColor(),
- cursor: "pointer",
- padding: "0px 10px"
+ borderColor: themeColor(),
+ cursor: "all-scroll"
}}
- >
- x
-
-
-
![signimg]()
{
- setSignKey(pos.key);
- setIsSignPad(true);
- setIsStamp(pos.isStamp);
- }}
- src={pos.SignUrl}
- style={{
- width: "100%",
- height: "100%",
- objectFit: "contain"
- }}
- />
-
-
- ) : (
- handleTabDrag(pos.key, e)}
- size={{
- width: pos.Width ? pos.Width : 150,
- height: pos.Height ? pos.Height : 60
- }}
- onDragStop={handleStop}
- default={{
- x: pos.xPosition,
- y: pos.yPosition
- }}
- >
- {
+ className="placeholderBlock"
+ onDrag={() => handleTabDrag(pos.key)}
+ size={{
+ width: pos.Width ? pos.Width : 150,
+ height: pos.Height ? pos.Height : 60
+ }}
+ onDragStop={handleStop}
+ default={{
+ x: pos.xPosition,
+ y: pos.yPosition
+ }}
+ onResize={(
+ e,
+ direction,
+ ref,
+ delta,
+ position
+ ) => {
+ handleSignYourselfImageResize(
+ ref,
+ pos.key,
+ direction,
+ position,
+ xyPostion,
+ index,
+ setXyPostion,
+ pdfOriginalWidth,
+ containerWH
+ );
+ }}
+ onClick={() => {
if (!isDragging) {
- e.stopPropagation();
setIsSignPad(true);
setSignKey(pos.key);
setIsStamp(pos.isStamp);
}
}}
- style={{
- cursor: "all-scroll",
- zIndex: 10,
- position: "absolute",
- borderStyle: "dashed",
- width: "150px",
- height: "60px",
- borderColor: themeColor(),
- background: "#daebe0",
- textAlign: "center",
- justifyContent: "center",
- alignItems: "center",
- borderWidth: "0.2px"
- }}
>
-
+
+
{
e.stopPropagation();
handleDeleteSign(pos.key);
setIsStamp(false);
}}
style={{
- position: "absolute",
- right: 0,
- display: "inline-block",
- background: themeColor(),
- cursor: "pointer",
- padding: "0px 10px"
+ background: themeColor()
}}
+ className="placeholdCloseBtn"
>
x
-
-
- {pos.isStamp ? "stamp" : "signature"}
-
-
-
+
+
+ {pos.SignUrl ? (
+
+ ) : (
+
+ {pos.isStamp ? "stamp" : "signature"}
+
+ )}
+
+ )
);
})}
);
}))}
{/* this component for render pdf document is in middle of the component */}
-