mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
Removing refetch and prevent 0 from displaying on empty comment streams.
This commit is contained in:
@@ -38,7 +38,6 @@ class Comment extends React.Component {
|
||||
// id of currently opened ReplyBox. tracked in Stream.js
|
||||
activeReplyBox: PropTypes.string.isRequired,
|
||||
setActiveReplyBox: PropTypes.func.isRequired,
|
||||
refetch: PropTypes.func.isRequired,
|
||||
showSignInDialog: PropTypes.func.isRequired,
|
||||
postFlag: PropTypes.func.isRequired,
|
||||
postLike: PropTypes.func.isRequired,
|
||||
@@ -85,7 +84,6 @@ class Comment extends React.Component {
|
||||
asset,
|
||||
depth,
|
||||
postItem,
|
||||
refetch,
|
||||
addNotification,
|
||||
showSignInDialog,
|
||||
postLike,
|
||||
@@ -155,7 +153,6 @@ class Comment extends React.Component {
|
||||
comment.replies &&
|
||||
comment.replies.map(reply => {
|
||||
return <Comment
|
||||
refetch={refetch}
|
||||
setActiveReplyBox={setActiveReplyBox}
|
||||
activeReplyBox={activeReplyBox}
|
||||
addNotification={addNotification}
|
||||
|
||||
@@ -19,12 +19,13 @@ const NewCount = (props) => {
|
||||
|
||||
return <div className='coral-new-comments'>
|
||||
{
|
||||
props.countCache && newComments > 0 &&
|
||||
props.countCache && newComments > 0 ?
|
||||
<button onClick={onLoadMoreClick(props)} className='coral-load-more'>
|
||||
{newComments === 1
|
||||
? lang.t('newCount', newComments, lang.t('comment'))
|
||||
: lang.t('newCount', newComments, lang.t('comments'))}
|
||||
</button>
|
||||
: null
|
||||
}
|
||||
</div>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user