Comment component passes addTag,removeTag to its replies' Comments

This commit is contained in:
Benjamin Goering
2017-02-28 19:59:34 +08:00
parent 7e3c5820dc
commit 51452a6b33
+2 -2
View File
@@ -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}