fix: design of email sent toast message

This commit is contained in:
RaktimaNXG
2023-12-05 14:12:12 +05:30
parent 428bb3b7c3
commit 7495955420
3 changed files with 16 additions and 14 deletions
@@ -67,13 +67,13 @@ function EmailComponent({
}
if (sendMail.data.result.status === "success") {
setIsEmail(false);
setEmailValue("");
setEmailList([]);
setSuccessEmail(true);
setTimeout(() => {
setSuccessEmail(false);
}, 1000);
setIsEmail(false);
setEmailValue("");
setEmailList([]);
}, 1500);
setIsLoading(false);
} else if (sendMail.data.result.status === "error") {
@@ -3,15 +3,18 @@ import "../../css/signature.css";
function EmailToast({ isShow }) {
return (
<div
style={{ display: isShow ? "flex" : "none", justifyContent: "center" }}
>
<div className="emailToast">
<span style={{ fontSize: "12px", fontWeight: "500" }}>
Email sent successfully!
</span>
</div>
</div>
<>
{isShow && (
<div style={{ display: "flex", justifyContent: "center" }}>
<div
className="alert alert-success successBox"
style={{ zIndex: "1051" }}
>
Email sent successfully!
</div>
</div>
)}
</>
);
}
@@ -1,6 +1,5 @@
import React from "react";
import RSC from "react-scrollbars-custom";
import Toast from "react-bootstrap/Toast";
import { Rnd } from "react-rnd";
import { themeColor } from "../../utils/ThemeColor/backColor";
import { Document, Page, pdfjs } from "react-pdf";