From dcc16dc5989700b4d44f13360c13fb38305f93f0 Mon Sep 17 00:00:00 2001 From: David Jay Date: Fri, 24 Feb 2017 14:45:47 -0500 Subject: [PATCH 1/2] Removing extra semicolon. --- client/coral-sign-in/components/FakeComment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-sign-in/components/FakeComment.js b/client/coral-sign-in/components/FakeComment.js index 75d4e51f1..b5af6bf1c 100644 --- a/client/coral-sign-in/components/FakeComment.js +++ b/client/coral-sign-in/components/FakeComment.js @@ -35,7 +35,7 @@ class FakeComment extends React.Component { thumb_up - ; + {}} parentCommentId={'commentID'} From 6a9d8c0436097599cf4a9ae8f0c1ca2e277cc9d8 Mon Sep 17 00:00:00 2001 From: David Jay Date: Fri, 24 Feb 2017 15:51:43 -0500 Subject: [PATCH 2/2] Removing refetch and prevent 0 from displaying on empty comment streams. --- client/coral-embed-stream/src/Comment.js | 3 --- client/coral-embed-stream/src/NewCount.js | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/coral-embed-stream/src/Comment.js b/client/coral-embed-stream/src/Comment.js index 8371cec45..f42b22e44 100644 --- a/client/coral-embed-stream/src/Comment.js +++ b/client/coral-embed-stream/src/Comment.js @@ -38,7 +38,6 @@ class Comment extends React.Component { // id of currently opened ReplyBox. tracked in Stream.js activeReplyBox: PropTypes.string.isRequired, setActiveReplyBox: PropTypes.func.isRequired, - refetch: PropTypes.func.isRequired, showSignInDialog: PropTypes.func.isRequired, postFlag: PropTypes.func.isRequired, postLike: PropTypes.func.isRequired, @@ -85,7 +84,6 @@ class Comment extends React.Component { asset, depth, postItem, - refetch, addNotification, showSignInDialog, postLike, @@ -155,7 +153,6 @@ class Comment extends React.Component { comment.replies && comment.replies.map(reply => { return { return
{ - props.countCache && newComments > 0 && + props.countCache && newComments > 0 ? + : null }
; };