Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
CRT: removes comment count (#8134)
Browse files Browse the repository at this point in the history
Removes comment count from post info component.
Justification: we show it in root post's thread footer.
  • Loading branch information
koox00 authored May 27, 2021
1 parent 90438ec commit bb673fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/post_view/post_info/post_info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default class PostInfo extends React.PureComponent<Props, State> {
return null;
}

const {isMobile, isReadOnly} = this.props;
const {isMobile, isReadOnly, collapsedThreadsEnabled} = this.props;
const hover = this.props.hover || this.state.showEmojiPicker || this.state.showDotMenu || this.state.showOptionsMenuWithoutHover;

const showCommentIcon = fromAutoResponder ||
Expand All @@ -201,7 +201,7 @@ export default class PostInfo extends React.PureComponent<Props, State> {
commentIcon = (
<CommentIcon
handleCommentClick={this.props.handleCommentClick}
commentCount={this.props.replyCount}
commentCount={collapsedThreadsEnabled ? undefined : this.props.replyCount}
postId={post.id}
extraClass={commentIconExtraClass}
/>
Expand Down Expand Up @@ -258,11 +258,11 @@ export default class PostInfo extends React.PureComponent<Props, State> {
data-testid={`post-menu-${post.id}`}
className={'col post-menu'}
>
{!this.props.collapsedThreadsEnabled && dotMenu}
{!collapsedThreadsEnabled && dotMenu}
{postReaction}
{postFlagIcon}
{commentIcon}
{this.props.collapsedThreadsEnabled && dotMenu}
{collapsedThreadsEnabled && dotMenu}
</div>
);
};
Expand Down

0 comments on commit bb673fb

Please sign in to comment.