CFE-6 notification bug fix

This commit is contained in:
2023-10-30 16:35:08 +03:30
parent 3be39d451c
commit 73ca237817
10 changed files with 102 additions and 36 deletions

View File

@@ -2,8 +2,8 @@ import BeenhereIcon from "@mui/icons-material/Beenhere";
import {Box, Typography} from "@mui/material";
import {toast} from "react-toastify";
const SuccessNotification = (t, status) => {
toast(
const SuccessNotification = (notificationType, t, status) => {
const toastId = toast(
() => (
<>
<Box
@@ -38,6 +38,7 @@ const SuccessNotification = (t, status) => {
draggable: true,
}
);
notification_type_id.success.push(toastId);
};
export default SuccessNotification;