diff --git a/apps/comments-ui/src/components/AddForm.js b/apps/comments-ui/src/components/AddForm.js
index 57a9f718aa..18aa2f60e7 100644
--- a/apps/comments-ui/src/components/AddForm.js
+++ b/apps/comments-ui/src/components/AddForm.js
@@ -134,9 +134,9 @@ class AddForm extends React.Component {
+
@@ -68,17 +69,17 @@ class Comment extends React.Component {
-
-
-
- {comment.replies && comment.replies.length > 0 && }
-
+
+ {hasReplies &&
+
+
+
+ }
);
}
diff --git a/apps/comments-ui/src/components/EditForm.js b/apps/comments-ui/src/components/EditForm.js
index e1fa20c093..bac5f96317 100644
--- a/apps/comments-ui/src/components/EditForm.js
+++ b/apps/comments-ui/src/components/EditForm.js
@@ -50,8 +50,8 @@ class EditForm extends React.Component {
-
-
+
+
diff --git a/apps/comments-ui/src/components/Like.js b/apps/comments-ui/src/components/Like.js
index 029fcc8685..435f7c7a16 100644
--- a/apps/comments-ui/src/components/Like.js
+++ b/apps/comments-ui/src/components/Like.js
@@ -15,7 +15,7 @@ function Like(props) {
return (
);
diff --git a/apps/comments-ui/src/components/More.js b/apps/comments-ui/src/components/More.js
index 934428961b..15c1c1dfc4 100644
--- a/apps/comments-ui/src/components/More.js
+++ b/apps/comments-ui/src/components/More.js
@@ -27,7 +27,7 @@ class More extends React.Component {
return (
- {show ? : null}
+ {show ? : null}
{this.state.isContextMenuOpen ? : null}
);
diff --git a/apps/comments-ui/src/components/Reply.js b/apps/comments-ui/src/components/Reply.js
index 5f0204b571..b40eb9aed6 100644
--- a/apps/comments-ui/src/components/Reply.js
+++ b/apps/comments-ui/src/components/Reply.js
@@ -1,9 +1,18 @@
+import React, {useState} from 'react';
import {ReactComponent as ReplyIcon} from '../images/icons/reply.svg';
function Reply() {
+ const [replied, setReplied] = useState(false);
+
+ const toggleReply = () => {
+ setReplied(!replied);
+ };
+
return (
-
+
);
}
-
-export default Reply;
\ No newline at end of file
+
+export default Reply;
diff --git a/apps/comments-ui/src/components/modals/CommentContextMenu.js b/apps/comments-ui/src/components/modals/CommentContextMenu.js
index 71af2c55df..5e95fa6f01 100644
--- a/apps/comments-ui/src/components/modals/CommentContextMenu.js
+++ b/apps/comments-ui/src/components/modals/CommentContextMenu.js
@@ -30,7 +30,7 @@ class CommentContextMenu extends React.Component {
const comment = this.props.comment;
return (
-
+
{this.isAuthor && comment.status === 'published' ?
: (this.isAdmin ?
: )}
);
diff --git a/apps/comments-ui/src/images/icons/more.svg b/apps/comments-ui/src/images/icons/more.svg
index 73f48763d5..22c7c1342e 100644
--- a/apps/comments-ui/src/images/icons/more.svg
+++ b/apps/comments-ui/src/images/icons/more.svg
@@ -1,5 +1,5 @@
diff --git a/apps/comments-ui/src/images/icons/reply.svg b/apps/comments-ui/src/images/icons/reply.svg
index 0bebc88cfd..513693d761 100644
--- a/apps/comments-ui/src/images/icons/reply.svg
+++ b/apps/comments-ui/src/images/icons/reply.svg
@@ -1,3 +1,3 @@
-