From: Jay Sitter Date: Sat, 17 Jun 2023 01:44:45 +0000 (-0400) Subject: fix: Add total users in site sidebar X-Git-Url: http://these/git/%7B%60/feeds/front/static/%7BpictrsAvatarThumbnail%28this.state.siteRes.site.icon%29%7D?a=commitdiff_plain;h=f7f8ddcd7ca18ca4a1a6688c69766f275871a0a8;p=lemmy-ui.git fix: Add total users in site sidebar --- diff --git a/src/shared/components/common/badges.tsx b/src/shared/components/common/badges.tsx index 5639034..858b986 100644 --- a/src/shared/components/common/badges.tsx +++ b/src/shared/components/common/badges.tsx @@ -79,6 +79,22 @@ export const Badges = ({ counts, community_view }: BadgesProps) => { })}{" "} / {i18n.t("number_of_months", { count: 6, formattedCount: 6 })} + {isSiteAggregates(counts) && ( + <> +
  • + {i18n.t("number_of_users", { + count: Number(counts.users), + formattedCount: numToSI(counts.users), + })} +
  • +
  • + {i18n.t("number_of_communities", { + count: Number(counts.communities), + formattedCount: numToSI(counts.communities), + })} +
  • + + )} {isCommunityAggregates(counts) && (
  • {i18n.t("number_of_subscribers", { @@ -87,14 +103,6 @@ export const Badges = ({ counts, community_view }: BadgesProps) => { })}
  • )} - {isSiteAggregates(counts) && ( -
  • - {i18n.t("number_of_communities", { - count: Number(counts.communities), - formattedCount: numToSI(counts.communities), - })} -
  • - )}
  • {i18n.t("number_of_posts", { count: Number(counts.posts),