Feature/faaliyat rozane cartable

This commit is contained in:
2024-12-23 08:20:46 +00:00
committed by AmirHossein Mahmoodi
parent f2ef4cd1db
commit 4b25071e41
75 changed files with 3722 additions and 236 deletions

View File

@@ -61,6 +61,35 @@ export const errorUnauthorizedToast = (toastContainer) =>
draggable: true,
}
);
export const errorAccessDeniedToast = (message, toastContainer) =>
toast.error(
() => (
<Box
sx={{
display: "flex",
flexDirection: "column",
alignItems: "start",
justifyContent: "start",
}}
>
<Box sx={{ display: "flex", alignItems: "center" }}>
<Dangerous color="error" sx={{ mr: 1.6 }} />
<Box sx={{ display: "flex", flexDirection: "column" }}>
<Typography variant="caption">{message || "Access Denied"}</Typography>
</Box>
</Box>
</Box>
),
{
icon: false,
containerId: toastContainer,
autoClose: 3000,
hideProgressBar: true,
pauseOnHover: true,
closeOnClick: false,
draggable: true,
}
);
export const errorLogicToast = (message, toastContainer) =>
toast.error(