From a77b947e8aecaeb95ba7fd69c024c5c6f18776cc Mon Sep 17 00:00:00 2001 From: Awais Ansari <79941147+awais-ansari@users.noreply.github.com> Date: Thu, 21 Apr 2022 22:05:21 +0500 Subject: [PATCH] fix: hide edit reason dropdown while adding a comment or response (#142) * fix: hide edit reason dropdown while adding a comment or response --- src/discussions/comments/comment/Comment.jsx | 1 + src/discussions/comments/comment/CommentEditor.jsx | 10 +++++++++- src/discussions/comments/comment/ResponseEditor.jsx | 6 +++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/discussions/comments/comment/Comment.jsx b/src/discussions/comments/comment/Comment.jsx index 1ce9ce08..7a96cb40 100644 --- a/src/discussions/comments/comment/Comment.jsx +++ b/src/discussions/comments/comment/Comment.jsx @@ -112,6 +112,7 @@ function Comment({ threadId: comment.threadId, parentId: comment.id, }} + edit={false} onCloseEditor={() => setReplying(false)} /> ) diff --git a/src/discussions/comments/comment/CommentEditor.jsx b/src/discussions/comments/comment/CommentEditor.jsx index 8e1da6f4..eba1ed01 100644 --- a/src/discussions/comments/comment/CommentEditor.jsx +++ b/src/discussions/comments/comment/CommentEditor.jsx @@ -20,6 +20,7 @@ function CommentEditor({ intl, comment, onCloseEditor, + edit, }) { const { authenticatedUser } = useContext(AppContext); const userIsPrivileged = useSelector(selectUserIsPrivileged); @@ -65,7 +66,9 @@ function CommentEditor({