mirror of
https://github.com/wassname/talk.git
synced 2026-07-30 12:40:41 +08:00
Comment component passes addTag,removeTag to its replies' Comments
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user