diff --git a/src/components/EditModal.jsx b/src/components/EditModal.jsx index e92220ba..4bcbdff9 100644 --- a/src/components/EditModal.jsx +++ b/src/components/EditModal.jsx @@ -7,6 +7,7 @@ import Draggable from 'react-draggable'; const EditModal = ({ isOpen, closeModal, originalCommentContent }) => { const { + setEditedComment, selectedStyle, } = useGeneralStore(state => state); @@ -27,6 +28,10 @@ const EditModal = ({ isOpen, closeModal, originalCommentContent }) => { }, [setIsMobile]); + const handleSaveEdit = () => { + setEditedComment(commentRef.current.value); + closeModal(); + }; return ( {