@@ -17,7 +17,7 @@ function PdfFileComponent({
17
17
setDocId,
18
18
setIsLoading,
19
19
setPdfData,
20
- isList,
20
+ isList
21
21
} ) {
22
22
const [ rename , setRename ] = useState ( "" ) ;
23
23
const [ renameValue , setRenameValue ] = useState ( "" ) ;
@@ -39,12 +39,12 @@ function PdfFileComponent({
39
39
const handleOnclikFolder = ( data ) => {
40
40
const folderData = {
41
41
name : data . Name ,
42
- objectId : data . objectId ,
42
+ objectId : data . objectId
43
43
} ;
44
44
setFolderName ( ( prev ) => [ ...prev , folderData ] ) ;
45
45
const loadObj = {
46
46
isLoad : true ,
47
- message : "This might take some time" ,
47
+ message : "This might take some time"
48
48
} ;
49
49
50
50
setIsLoading ( loadObj ) ;
@@ -57,7 +57,7 @@ function PdfFileComponent({
57
57
58
58
if ( trimmedValue . length > 0 ) {
59
59
const updateName = {
60
- Name : renameValue ,
60
+ Name : renameValue
61
61
} ;
62
62
const docId = data . objectId ;
63
63
@@ -83,8 +83,8 @@ function PdfFileComponent({
83
83
headers : {
84
84
"Content-Type" : "application/json" ,
85
85
"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
+ }
88
88
}
89
89
)
90
90
. then ( ( result ) => {
@@ -99,7 +99,6 @@ function PdfFileComponent({
99
99
100
100
//function for navigate user to microapp-signature component
101
101
const checkPdfStatus = async ( data ) => {
102
-
103
102
const hostUrl = getHostUrl ( ) ;
104
103
const expireDate = data . ExpiryDate . iso ;
105
104
const expireUpdateDate = new Date ( expireDate ) . getTime ( ) ;
@@ -116,10 +115,7 @@ function PdfFileComponent({
116
115
117
116
// window.location.hash = `/pdfRequestFiles/${data.objectId}`;
118
117
} 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 } ` ) ;
123
119
}
124
120
//checking if document has declined by someone
125
121
else if ( isDecline ) {
@@ -231,8 +227,8 @@ function PdfFileComponent({
231
227
232
228
const sanitizeFileName = ( pdfName ) => {
233
229
// Replace spaces with underscore
234
- return pdfName . replace ( / / g, '_' ) ;
235
- }
230
+ return pdfName . replace ( / / g, "_" ) ;
231
+ } ;
236
232
237
233
const handleEnterPress = ( e , data ) => {
238
234
if ( e . key === "Enter" ) {
@@ -312,7 +308,7 @@ function PdfFileComponent({
312
308
style = { {
313
309
display : "flex" ,
314
310
flexDirection : "column" ,
315
- cursor : "pointer" ,
311
+ cursor : "pointer"
316
312
} }
317
313
>
318
314
< img
@@ -344,7 +340,7 @@ function PdfFileComponent({
344
340
width : "100px" ,
345
341
border : "1.5px solid black" ,
346
342
borderRadius : "2px" ,
347
- fontSize : "10px" ,
343
+ fontSize : "10px"
348
344
} }
349
345
/>
350
346
) : (
@@ -385,7 +381,7 @@ function PdfFileComponent({
385
381
style = { {
386
382
display : "flex" ,
387
383
flexDirection : "column" ,
388
- cursor : "pointer" ,
384
+ cursor : "pointer"
389
385
} }
390
386
>
391
387
< img
@@ -417,7 +413,7 @@ function PdfFileComponent({
417
413
width : "100px" ,
418
414
border : "1.5px solid black" ,
419
415
borderRadius : "2px" ,
420
- fontSize : "10px" ,
416
+ fontSize : "10px"
421
417
} }
422
418
/>
423
419
) : (
@@ -484,7 +480,7 @@ function PdfFileComponent({
484
480
width : "100px" ,
485
481
border : "1.5px solid black" ,
486
482
borderRadius : "2px" ,
487
- fontSize : "10px" ,
483
+ fontSize : "10px"
488
484
} }
489
485
/>
490
486
) : (
@@ -576,8 +572,8 @@ function PdfFileComponent({
576
572
//component to handle type of document and render according to type
577
573
578
574
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 >
581
577
< thead >
582
578
< tr >
583
579
< th > Name</ th >
0 commit comments