From 65c1d44cac3c5b48ccfc1195d28fb3787795b6fa Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 8 Feb 2024 22:08:32 +0000 Subject: [PATCH] Add pressed state to profile counts --- src/view/com/profile/ProfileHeader.tsx | 50 ++++++++++++++------------ 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx index 0305dc267c..566f633083 100644 --- a/src/view/com/profile/ProfileHeader.tsx +++ b/src/view/com/profile/ProfileHeader.tsx @@ -28,7 +28,7 @@ import {UserBanner} from '../util/UserBanner' import {ProfileHeaderAlerts} from '../util/moderation/ProfileHeaderAlerts' import {formatCount} from '../util/numeric/format' import {NativeDropdown, DropdownItem} from '../util/forms/NativeDropdown' -import {Link} from '../util/Link' +import {TextLink} from '../util/Link' import {ProfileHeaderSuggestedFollows} from './ProfileHeaderSuggestedFollows' import {useModalControls} from '#/state/modals' import {useLightboxControls, ProfileImageLightbox} from '#/state/lightbox' @@ -600,7 +600,7 @@ let ProfileHeaderLoaded = ({ {!blockHide && ( <> - - - {followers}{' '} - - - {pluralizedFollowers} - - - + + {followers}{' '} + + + {pluralizedFollowers} + + + } + /> + - - - {following}{' '} - - - following - - - + accessibilityHint={_(msg`Opens following list`)} + text={ + + + {following}{' '} + + + following + + + } + /> {formatCount(profile.postsCount || 0)}{' '}