File tree Expand file tree Collapse file tree 3 files changed +16
-14
lines changed
microfrontends/SignDocuments/src/Component/component Expand file tree Collapse file tree 3 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,13 @@ function EmailComponent({
67
67
}
68
68
69
69
if ( sendMail . data . result . status === "success" ) {
70
- setIsEmail ( false ) ;
71
- setEmailValue ( "" ) ;
72
- setEmailList ( [ ] ) ;
73
70
setSuccessEmail ( true ) ;
74
71
setTimeout ( ( ) => {
75
72
setSuccessEmail ( false ) ;
76
- } , 1000 ) ;
73
+ setIsEmail ( false ) ;
74
+ setEmailValue ( "" ) ;
75
+ setEmailList ( [ ] ) ;
76
+ } , 1500 ) ;
77
77
78
78
setIsLoading ( false ) ;
79
79
} else if ( sendMail . data . result . status === "error" ) {
Original file line number Diff line number Diff line change @@ -3,15 +3,18 @@ import "../../css/signature.css";
3
3
4
4
function EmailToast ( { isShow } ) {
5
5
return (
6
- < div
7
- style = { { display : isShow ? "flex" : "none" , justifyContent : "center" } }
8
- >
9
- < div className = "emailToast" >
10
- < span style = { { fontSize : "12px" , fontWeight : "500" } } >
11
- Email sent successfully!
12
- </ span >
13
- </ div >
14
- </ div >
6
+ < >
7
+ { isShow && (
8
+ < div style = { { display : "flex" , justifyContent : "center" } } >
9
+ < div
10
+ className = "alert alert-success successBox"
11
+ style = { { zIndex : "1051" } }
12
+ >
13
+ Email sent successfully!
14
+ </ div >
15
+ </ div >
16
+ ) }
17
+ </ >
15
18
) ;
16
19
}
17
20
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import RSC from "react-scrollbars-custom" ;
3
- import Toast from "react-bootstrap/Toast" ;
4
3
import { Rnd } from "react-rnd" ;
5
4
import { themeColor } from "../../utils/ThemeColor/backColor" ;
6
5
import { Document , Page , pdfjs } from "react-pdf" ;
You can’t perform that action at this time.
0 commit comments