Skip to content

Commit d63e51b

Browse files
Merge pull request #307 from OpenSignLabs/need-your-sign
fix: placeholder display issue of all signers after save placeholder and login flow
2 parents b701d28 + 7bd8d64 commit d63e51b

File tree

13 files changed

+1026
-1078
lines changed

13 files changed

+1026
-1078
lines changed

microfrontends/SignDocuments/src/Component/LegaDrive/FolderDrive/legaDriveComponent.js

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function PdfFileComponent({
1717
setDocId,
1818
setIsLoading,
1919
setPdfData,
20-
isList,
20+
isList
2121
}) {
2222
const [rename, setRename] = useState("");
2323
const [renameValue, setRenameValue] = useState("");
@@ -39,12 +39,12 @@ function PdfFileComponent({
3939
const handleOnclikFolder = (data) => {
4040
const folderData = {
4141
name: data.Name,
42-
objectId: data.objectId,
42+
objectId: data.objectId
4343
};
4444
setFolderName((prev) => [...prev, folderData]);
4545
const loadObj = {
4646
isLoad: true,
47-
message: "This might take some time",
47+
message: "This might take some time"
4848
};
4949

5050
setIsLoading(loadObj);
@@ -57,7 +57,7 @@ function PdfFileComponent({
5757

5858
if (trimmedValue.length > 0) {
5959
const updateName = {
60-
Name: renameValue,
60+
Name: renameValue
6161
};
6262
const docId = data.objectId;
6363

@@ -83,8 +83,8 @@ function PdfFileComponent({
8383
headers: {
8484
"Content-Type": "application/json",
8585
"X-Parse-Application-Id": localStorage.getItem("parseAppId"),
86-
"X-Parse-Session-Token": localStorage.getItem("accesstoken"),
87-
},
86+
"X-Parse-Session-Token": localStorage.getItem("accesstoken")
87+
}
8888
}
8989
)
9090
.then((result) => {
@@ -99,7 +99,6 @@ function PdfFileComponent({
9999

100100
//function for navigate user to microapp-signature component
101101
const checkPdfStatus = async (data) => {
102-
103102
const hostUrl = getHostUrl();
104103
const expireDate = data.ExpiryDate.iso;
105104
const expireUpdateDate = new Date(expireDate).getTime();
@@ -116,10 +115,7 @@ function PdfFileComponent({
116115

117116
// window.location.hash = `/pdfRequestFiles/${data.objectId}`;
118117
} else if (data.IsCompleted && !signerExist) {
119-
navigate(
120-
`${hostUrl}signaturePdf/${data.objectId}`
121-
);
122-
// window.location.hash = `/recipientSignPdf/${data.objectId}/${data.ExtUserPtr.Phone}`;
118+
navigate(`${hostUrl}signaturePdf/${data.objectId}`);
123119
}
124120
//checking if document has declined by someone
125121
else if (isDecline) {
@@ -231,8 +227,8 @@ function PdfFileComponent({
231227

232228
const sanitizeFileName = (pdfName) => {
233229
// Replace spaces with underscore
234-
return pdfName.replace(/ /g, '_');
235-
}
230+
return pdfName.replace(/ /g, "_");
231+
};
236232

237233
const handleEnterPress = (e, data) => {
238234
if (e.key === "Enter") {
@@ -312,7 +308,7 @@ function PdfFileComponent({
312308
style={{
313309
display: "flex",
314310
flexDirection: "column",
315-
cursor: "pointer",
311+
cursor: "pointer"
316312
}}
317313
>
318314
<img
@@ -344,7 +340,7 @@ function PdfFileComponent({
344340
width: "100px",
345341
border: "1.5px solid black",
346342
borderRadius: "2px",
347-
fontSize: "10px",
343+
fontSize: "10px"
348344
}}
349345
/>
350346
) : (
@@ -385,7 +381,7 @@ function PdfFileComponent({
385381
style={{
386382
display: "flex",
387383
flexDirection: "column",
388-
cursor: "pointer",
384+
cursor: "pointer"
389385
}}
390386
>
391387
<img
@@ -417,7 +413,7 @@ function PdfFileComponent({
417413
width: "100px",
418414
border: "1.5px solid black",
419415
borderRadius: "2px",
420-
fontSize: "10px",
416+
fontSize: "10px"
421417
}}
422418
/>
423419
) : (
@@ -484,7 +480,7 @@ function PdfFileComponent({
484480
width: "100px",
485481
border: "1.5px solid black",
486482
borderRadius: "2px",
487-
fontSize: "10px",
483+
fontSize: "10px"
488484
}}
489485
/>
490486
) : (
@@ -576,8 +572,8 @@ function PdfFileComponent({
576572
//component to handle type of document and render according to type
577573

578574
return isList ? (
579-
<div className="container" style={{overflowX:"auto"}}>
580-
<Table striped bordered hover >
575+
<div className="container" style={{ overflowX: "auto" }}>
576+
<Table striped bordered hover>
581577
<thead>
582578
<tr>
583579
<th>Name</th>

0 commit comments

Comments
 (0)