style: change z-index of alert

This commit is contained in:
prafull-opensignlabs
2024-05-17 12:05:18 +05:30
parent f6f7c6cecd
commit f38d83dbe0
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ const Alert = ({ children, type }) => {
<>
{children && (
<div
className={`z-40 fixed top-20 left-1/2 transform -translate-x-1/2 border-[1px] text-sm ${textcolor} rounded py-[.75rem] px-[1.25rem] z-50`}
className={`z-[1000] fixed top-20 left-1/2 transform -translate-x-1/2 border-[1px] text-sm ${textcolor} rounded py-[.75rem] px-[1.25rem] z-50`}
>
{children}
</div>
@@ -546,7 +546,6 @@ const ReportTable = (props) => {
const handleResendMail = async (e, doc, user) => {
e.preventDefault();
setActLoader({ [user.objectId]: true });
setIsAlert(true);
const url = `${localStorage.getItem("baseUrl")}functions/sendmailv3`;
const headers = {
"Content-Type": "application/json",
@@ -564,10 +563,12 @@ const ReportTable = (props) => {
try {
const res = await axios.post(url, params, { headers: headers });
if (res) {
setIsAlert(true);
setAlertMsg({ type: "success", message: "Mail sent successfully." });
}
} catch (err) {
console.log("err in sendmail", err);
setIsAlert(true);
setAlertMsg({
type: "danger",
message: "Something went wrong, please try again later!"