pop-up notifications

This commit is contained in:
2024-03-12 16:14:44 +03:00
parent 8797ba0778
commit 727d55798a
12 changed files with 186 additions and 40 deletions

View File

@ -256,7 +256,11 @@ export const ProjectTracker = () => {
} else {
dispatch(setProjectBoardFetch(projectBoard.id));
}
showNotification({ show: true, text: "Колонка удалена", type: "error" });
showNotification({
show: true,
text: "Колонка удалена",
type: "error"
});
});
}
@ -319,6 +323,11 @@ export const ProjectTracker = () => {
...prevState,
add: false
}));
showNotification({
show: true,
text: "Тег успешно создан",
type: "success"
});
});
});
}
@ -340,6 +349,11 @@ export const ProjectTracker = () => {
}));
setTagInfo({ description: "", name: "" });
setColor("#aabbcc");
showNotification({
show: true,
text: "Тег успешно изменён",
type: "success"
});
});
}
@ -353,6 +367,11 @@ export const ProjectTracker = () => {
}
}).then(() => {
dispatch(deleteTagProject(tagId));
showNotification({
show: true,
text: "Тег удален",
type: "success"
});
});
}