modal accept with notifications

This commit is contained in:
nik.polishuk committed 2023-07-14 03:03:33 +03:00
1 parent 242f298bee
commit 001920a840
17 files changed
+310 -25

No files matched your search

@@ -49,6 +49,7 @@ import archive from "assets/images/archiveIcon.png";
import avatarMok from "assets/images/avatarMok.png";
import { getCorrectDate } from "../../components/Calendar/calendarHelper";
import {useNotification} from "@hooks/useNotification";
export const ProjectTracker = () => {
const dispatch = useDispatch();
@@ -72,6 +73,7 @@ export const ProjectTracker = () => {
const startWrapperIndexTest = useRef({});
const projectBoard = useSelector(getProjectBoard);
const loader = useSelector(getBoarderLoader);
const { showNotification } = useNotification()
useEffect(() => {
dispatch(activeLoader());
@@ -224,6 +226,7 @@ export const ProjectTracker = () => {
} else {
dispatch(setProjectBoardFetch(projectBoard.id));
}
showNotification({show: true, text: 'Колонка удалена', type: 'error'})
});
}