@@ -28,9 +28,7 @@ function EmailComponent({
2828 setIsLoading ( true ) ;
2929 let sendMail ;
3030 for ( let i = 0 ; i < emailCount . length ; i ++ ) {
31-
3231 try {
33-
3432 const imgPng =
3533 "https://qikinnovation.ams3.digitaloceanspaces.com/logo.png" ;
3634 // "https://qikinnovation.ams3.digitaloceanspaces.com/mailLogo_2023-08-18T12%3A51%3A31.573Z.png";
@@ -111,16 +109,22 @@ function EmailComponent({
111109
112110 const pdf = await getBase64FromUrl ( pdfUrl ) ;
113111 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 ;
115116 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" } ) ;
118123 const blobUrl = URL . createObjectURL ( blob ) ;
119- window . open ( blobUrl , ' _blank' ) ;
124+ window . open ( blobUrl , " _blank" ) ;
120125 } else {
121126 printModule ( { printable : pdf , type : "pdf" , base64 : true } ) ;
122127 }
123-
124128 } ;
125129
126130 //handle download signed pdf
@@ -130,12 +134,11 @@ function EmailComponent({
130134
131135 const sanitizeFileName = ( pdfName ) => {
132136 // Replace spaces with underscore
133- return pdfName . replace ( / / g, '_' ) ;
134- }
137+ return pdfName . replace ( / / g, "_" ) ;
138+ } ;
135139
136140 const isAndroid = / A n d r o i d / i. test ( navigator . userAgent ) ;
137141
138-
139142 return (
140143 < div >
141144 { /* isEmail */ }
@@ -167,7 +170,7 @@ function EmailComponent({
167170 ) }
168171
169172 < ModalHeader style = { { background : themeColor ( ) } } >
170- < span style = { { color : "white" } } > Email Documents </ span >
173+ < span style = { { color : "white" } } > Successfully signed! </ span >
171174
172175 < div style = { { display : "flex" , flexDirection : "row" } } >
173176 < div > </ div >
@@ -259,14 +262,20 @@ function EmailComponent({
259262 >
260263 { emailCount . map ( ( data , ind ) => {
261264 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+ >
265274 < span
266275 style = { {
267276 color : "white" ,
268277 fontSize : "13px" ,
269- marginRight : "20px "
278+ marginTop : "2px "
270279 } }
271280 >
272281 { data }
@@ -278,7 +287,7 @@ function EmailComponent({
278287 src = { close }
279288 width = { 10 }
280289 height = { 10 }
281- style = { { fontWeight : "600" } }
290+ style = { { fontWeight : "600" , margin : "0 0 10px 2px" } }
282291 />
283292 </ div >
284293 ) ;
0 commit comments