From 3574212c76dfaebbf6915aea3fa538ba1e05b740 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Tue, 20 Jun 2023 19:53:55 -0400 Subject: [PATCH] feat: Hide 'comments' in post listing comments button; icon and title text is clear --- src/shared/components/post/post-listing.tsx | 22 ++++++++++----------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 1c58546..5249e8f 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -734,24 +734,22 @@ export class PostListing extends Component { get commentsButton() { const post_view = this.postView; + const title = i18n.t("number_of_comments", { + count: Number(post_view.counts.comments), + formattedCount: Number(post_view.counts.comments), + }); + return ( - - {i18n.t("number_of_comments", { - count: Number(post_view.counts.comments), - formattedCount: numToSI(post_view.counts.comments), - })} - + {post_view.counts.comments} {this.unreadCount && ( - + ({this.unreadCount} {i18n.t("new")}) )} -- 2.44.1