From 74e2183424c82d2cfccee57a6c63c403b57e8d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicole=20Miko=C5=82ajczyk?= Date: Mon, 7 Apr 2025 16:53:44 +0200 Subject: [PATCH] pl-fe: show mitra subscribers count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicole Mikołajczyk --- .../features/ui/components/profile-stats.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/pl-fe/src/features/ui/components/profile-stats.tsx b/packages/pl-fe/src/features/ui/components/profile-stats.tsx index dbb7169d4..940b9a452 100644 --- a/packages/pl-fe/src/features/ui/components/profile-stats.tsx +++ b/packages/pl-fe/src/features/ui/components/profile-stats.tsx @@ -13,10 +13,11 @@ const messages = defineMessages({ followers: { id: 'account.followers', defaultMessage: 'Followers' }, follows: { id: 'account.follows', defaultMessage: 'Following' }, statuses: { id: 'account.statuses', defaultMessage: 'Statuses' }, + subscribers: { id: 'account.subscribers', defaultMessage: 'Subscribers' }, }); interface IProfileStats { - account: Pick | undefined; + account: Pick | undefined; onClickHandler?: React.MouseEventHandler; } @@ -67,6 +68,21 @@ const ProfileStats: React.FC = ({ account, onClickHandler }) => { + + {account.subscribers_count > 0 && ( + // + + {!demetricator && ( + + {shortNumberFormat(account.subscribers_count)} + + )} + + {intl.formatMessage(messages.subscribers)} + + + // + )} ); };