From cbde4cc8bc4031283202b646452e38d522589222 Mon Sep 17 00:00:00 2001 From: gaba Date: Wed, 12 Apr 2017 11:58:41 -0700 Subject: [PATCH] Removes handleClick as it is working now with the changeTab (as the viewAllComments was added). /cc @kiwi --- client/coral-embed-stream/src/Embed.js | 9 +-------- client/coral-plugin-comment-count/CommentCount.js | 4 ++-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index 342e490ea..db9c76000 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -121,11 +121,6 @@ class Embed extends React.Component { } } - handleClick = () => { - this.props.viewAllComments(); - this.props.data.refetch(); - } - render () { const {activeTab} = this.state; const {closedAt, countCache = {}} = this.props.asset; @@ -156,9 +151,7 @@ class Embed extends React.Component {
- + {lang.t('MY_COMMENTS')} Configure Stream diff --git a/client/coral-plugin-comment-count/CommentCount.js b/client/coral-plugin-comment-count/CommentCount.js index be38d1425..764984634 100644 --- a/client/coral-plugin-comment-count/CommentCount.js +++ b/client/coral-plugin-comment-count/CommentCount.js @@ -3,8 +3,8 @@ import {I18n} from '../coral-framework'; import translations from './translations.json'; const name = 'coral-plugin-comment-count'; -const CommentCount = ({count, handleClick}) => { - return
+const CommentCount = ({count}) => { + return
{`${count} ${count === 1 ? lang.t('comment') : lang.t('comment-plural')}`}
; };