@@ -28,9 +28,7 @@ function EmailComponent({
28
28
setIsLoading ( true ) ;
29
29
let sendMail ;
30
30
for ( let i = 0 ; i < emailCount . length ; i ++ ) {
31
-
32
31
try {
33
-
34
32
const imgPng =
35
33
"https://qikinnovation.ams3.digitaloceanspaces.com/logo.png" ;
36
34
// "https://qikinnovation.ams3.digitaloceanspaces.com/mailLogo_2023-08-18T12%3A51%3A31.573Z.png";
@@ -111,16 +109,22 @@ function EmailComponent({
111
109
112
110
const pdf = await getBase64FromUrl ( pdfUrl ) ;
113
111
const isAndroidDevice = navigator . userAgent . match ( / A n d r o i d / i) ;
114
- const isAppleDevice = ( / i P a d | i P h o n e | i P o d / . test ( navigator . platform ) || ( navigator . platform === 'MacIntel' && navigator . maxTouchPoints > 1 ) ) && ! window . MSStream
112
+ const isAppleDevice =
113
+ ( / i P a d | i P h o n e | i P o d / . test ( navigator . platform ) ||
114
+ ( navigator . platform === "MacIntel" && navigator . maxTouchPoints > 1 ) ) &&
115
+ ! window . MSStream ;
115
116
if ( isAndroidDevice || isAppleDevice ) {
116
- const byteArray = Uint8Array . from ( atob ( pdf ) . split ( '' ) . map ( char => char . charCodeAt ( 0 ) ) ) ;
117
- const blob = new Blob ( [ byteArray ] , { type : 'application/pdf' } ) ;
117
+ const byteArray = Uint8Array . from (
118
+ atob ( pdf )
119
+ . split ( "" )
120
+ . map ( ( char ) => char . charCodeAt ( 0 ) )
121
+ ) ;
122
+ const blob = new Blob ( [ byteArray ] , { type : "application/pdf" } ) ;
118
123
const blobUrl = URL . createObjectURL ( blob ) ;
119
- window . open ( blobUrl , ' _blank' ) ;
124
+ window . open ( blobUrl , " _blank" ) ;
120
125
} else {
121
126
printModule ( { printable : pdf , type : "pdf" , base64 : true } ) ;
122
127
}
123
-
124
128
} ;
125
129
126
130
//handle download signed pdf
@@ -130,12 +134,11 @@ function EmailComponent({
130
134
131
135
const sanitizeFileName = ( pdfName ) => {
132
136
// Replace spaces with underscore
133
- return pdfName . replace ( / / g, '_' ) ;
134
- }
137
+ return pdfName . replace ( / / g, "_" ) ;
138
+ } ;
135
139
136
140
const isAndroid = / A n d r o i d / i. test ( navigator . userAgent ) ;
137
141
138
-
139
142
return (
140
143
< div >
141
144
{ /* isEmail */ }
@@ -167,7 +170,7 @@ function EmailComponent({
167
170
) }
168
171
169
172
< ModalHeader style = { { background : themeColor ( ) } } >
170
- < span style = { { color : "white" } } > Email Documents </ span >
173
+ < span style = { { color : "white" } } > Successfully signed! </ span >
171
174
172
175
< div style = { { display : "flex" , flexDirection : "row" } } >
173
176
< div > </ div >
@@ -259,14 +262,20 @@ function EmailComponent({
259
262
>
260
263
{ emailCount . map ( ( data , ind ) => {
261
264
return (
262
- < div className = "emailChip"
263
- style = { { display :"flex" , flexDirection :"row" , alignItems :"center" } }
264
- key = { ind } >
265
+ < div
266
+ className = "emailChip"
267
+ style = { {
268
+ display : "flex" ,
269
+ flexDirection : "row" ,
270
+ alignItems : "center"
271
+ } }
272
+ key = { ind }
273
+ >
265
274
< span
266
275
style = { {
267
276
color : "white" ,
268
277
fontSize : "13px" ,
269
- marginRight : "20px "
278
+ marginTop : "2px "
270
279
} }
271
280
>
272
281
{ data }
@@ -278,7 +287,7 @@ function EmailComponent({
278
287
src = { close }
279
288
width = { 10 }
280
289
height = { 10 }
281
- style = { { fontWeight : "600" } }
290
+ style = { { fontWeight : "600" , margin : "0 0 10px 2px" } }
282
291
/>
283
292
</ div >
284
293
) ;
0 commit comments