Skip to content

Commit 7495955

Browse files
fix: design of email sent toast message
1 parent 428bb3b commit 7495955

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

microfrontends/SignDocuments/src/Component/component/emailComponent.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ function EmailComponent({
6767
}
6868

6969
if (sendMail.data.result.status === "success") {
70-
setIsEmail(false);
71-
setEmailValue("");
72-
setEmailList([]);
7370
setSuccessEmail(true);
7471
setTimeout(() => {
7572
setSuccessEmail(false);
76-
}, 1000);
73+
setIsEmail(false);
74+
setEmailValue("");
75+
setEmailList([]);
76+
}, 1500);
7777

7878
setIsLoading(false);
7979
} else if (sendMail.data.result.status === "error") {

microfrontends/SignDocuments/src/Component/component/emailToast.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ import "../../css/signature.css";
33

44
function EmailToast({ isShow }) {
55
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+
</>
1518
);
1619
}
1720

microfrontends/SignDocuments/src/Component/component/renderPdf.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
22
import RSC from "react-scrollbars-custom";
3-
import Toast from "react-bootstrap/Toast";
43
import { Rnd } from "react-rnd";
54
import { themeColor } from "../../utils/ThemeColor/backColor";
65
import { Document, Page, pdfjs } from "react-pdf";

0 commit comments

Comments
 (0)