Skip to content
Snippets Groups Projects

Resolve "A popup notification after adding comment"

Merged Piotr Gawron requested to merge 270-a-popup-notification-after-adding-comment into development
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
@@ -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 (
Loading