diff --git a/src/editor/widgets/comment/Comment.jsx b/src/editor/widgets/comment/Comment.jsx index ef48757..8560faa 100644 --- a/src/editor/widgets/comment/Comment.jsx +++ b/src/editor/widgets/comment/Comment.jsx @@ -24,6 +24,7 @@ const Comment = props => { props.onDelete(props.body); setIsMenuVisible(false); } + const onUpdateComment = evt => { props.onUpdate(props.body, { ...props.body, value: evt.target.value }); } @@ -43,6 +44,7 @@ const Comment = props => { } + return props.readOnly ? (