From dbeca830a28860cf5040e3a4157a41c1929ba52c Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Tue, 12 Sep 2017 13:30:15 -0300 Subject: [PATCH] Closing after featuring and unfeaturing --- .../client/components/ModActionButton.js | 15 +++++++++++++-- .../client/containers/ModActionButton.js | 10 +++++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/plugins/talk-plugin-featured-comments/client/components/ModActionButton.js b/plugins/talk-plugin-featured-comments/client/components/ModActionButton.js index 5eabcdde7..b1811d2fc 100644 --- a/plugins/talk-plugin-featured-comments/client/components/ModActionButton.js +++ b/plugins/talk-plugin-featured-comments/client/components/ModActionButton.js @@ -29,12 +29,23 @@ export class ModActionButton extends React.Component { }); } + handleDeleteTag = () => { + this.props.deleteTag(); + this.props.closeTooltip(); + } + + handlePostTag = () => { + this.props.postTag(); + this.props.closeTooltip(); + } + render() { - const {alreadyTagged, deleteTag, postTag} = this.props; + const {alreadyTagged} = this.props; + const {handleDeleteTag, handlePostTag} = this; return (