CFE-6 bug fix toast and make better flow for remove and add toast in page
This commit is contained in:
@@ -2,7 +2,7 @@ import BeenhereIcon from "@mui/icons-material/Beenhere";
|
||||
import {Box, Typography} from "@mui/material";
|
||||
import {toast} from "react-toastify";
|
||||
|
||||
const SuccessNotification = (notificationType, t, status) => {
|
||||
const SuccessNotification = (pushToastList, notificationType, t, status) => {
|
||||
const toastId = toast(
|
||||
() => (
|
||||
<>
|
||||
@@ -38,7 +38,7 @@ const SuccessNotification = (notificationType, t, status) => {
|
||||
draggable: true,
|
||||
}
|
||||
);
|
||||
notification_type_id.success.push(toastId);
|
||||
pushToastList(notificationType, toastId);
|
||||
};
|
||||
|
||||
export default SuccessNotification;
|
||||
Reference in New Issue
Block a user