From 51452a6b33533e0d771d34f7b276fd5fa2747a29 Mon Sep 17 00:00:00 2001 From: Benjamin Goering Date: Tue, 28 Feb 2017 16:17:48 +0800 Subject: [PATCH] Comment component passes addTag,removeTag to its replies' Comments --- client/coral-embed-stream/src/Comment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/coral-embed-stream/src/Comment.js b/client/coral-embed-stream/src/Comment.js index 47fd86cc8..19af229dc 100644 --- a/client/coral-embed-stream/src/Comment.js +++ b/client/coral-embed-stream/src/Comment.js @@ -108,8 +108,6 @@ class Comment extends React.Component { const flag = getActionSummary('FlagActionSummary', comment); const dontagree = getActionSummary('DontAgreeActionSummary', comment); - // @TODO(bengo) Should I do this for addCommentTag and/or best button - // @TODO(bengo) Would be best to only create these funcs on prop change const addBestTag = () => addCommentTag({ id: comment.id, @@ -194,6 +192,8 @@ class Comment extends React.Component { postLike={postLike} postFlag={postFlag} deleteAction={deleteAction} + addCommentTag={addCommentTag} + removeCommentTag={removeCommentTag} showSignInDialog={showSignInDialog} reactKey={reply.id} key={reply.id}