From 1e89c4576756c57c0da81f867af593ab646efcbb Mon Sep 17 00:00:00 2001 From: Piotr Gawron <p.gawron@atcomp.pl> Date: Wed, 4 Sep 2024 12:20:38 +0200 Subject: [PATCH] show info that comment has been added --- .../Modal/AddCommentModal/AddCommentModal.component.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/FunctionalArea/Modal/AddCommentModal/AddCommentModal.component.tsx b/src/components/FunctionalArea/Modal/AddCommentModal/AddCommentModal.component.tsx index 9c4fde54..d8469a94 100644 --- a/src/components/FunctionalArea/Modal/AddCommentModal/AddCommentModal.component.tsx +++ b/src/components/FunctionalArea/Modal/AddCommentModal/AddCommentModal.component.tsx @@ -8,6 +8,7 @@ import { useAppSelector } from '@/redux/hooks/useAppSelector'; import { lastRightClickSelector } from '@/redux/models/models.selectors'; import { closeModal } from '@/redux/modal/modal.slice'; import { getComments } from '@/redux/comment/thunks/getComments'; +import { showToast } from '@/utils/showToast'; export const AddCommentModal: React.FC = () => { const dispatch = useAppDispatch(); @@ -30,6 +31,11 @@ export const AddCommentModal: React.FC = () => { await dispatch(addComment(data)); dispatch(closeModal()); dispatch(getComments()); + showToast({ + type: 'success', + message: + 'Thank you for your feedback, your comment has been placed on the map. To see all comments, use the “show comments†button in the upper right', + }); }; return ( -- GitLab