diff options
Diffstat (limited to 'src/view/com/profile')
-rw-r--r-- | src/view/com/profile/FollowButton.tsx | 4 | ||||
-rw-r--r-- | src/view/com/profile/ProfileHeader.tsx | 19 |
2 files changed, 13 insertions, 10 deletions
diff --git a/src/view/com/profile/FollowButton.tsx b/src/view/com/profile/FollowButton.tsx index 7715358cf..fcb2225da 100644 --- a/src/view/com/profile/FollowButton.tsx +++ b/src/view/com/profile/FollowButton.tsx @@ -33,7 +33,7 @@ export const FollowButton = observer( store.me.follows.removeFollow(did) onToggleFollow?.(false) } catch (e: any) { - store.log.error('Failed fo delete follow', e) + store.log.error('Failed to delete follow', e) Toast.show('An issue occurred, please try again.') } } else if (updatedFollowState === FollowState.NotFollowing) { @@ -42,7 +42,7 @@ export const FollowButton = observer( store.me.follows.addFollow(did, res.uri) onToggleFollow?.(true) } catch (e: any) { - store.log.error('Failed fo create follow', e) + store.log.error('Failed to create follow', e) Toast.show('An issue occurred, please try again.') } } diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx index 3b9ca67c9..9b4df0989 100644 --- a/src/view/com/profile/ProfileHeader.tsx +++ b/src/view/com/profile/ProfileHeader.tsx @@ -218,7 +218,7 @@ const ProfileHeaderLoaded = observer( onRefreshAll() Toast.show('Account unblocked') } catch (e: any) { - store.log.error('Failed to block unaccount', e) + store.log.error('Failed to unblock account', e) Toast.show(`There was an issue! ${e.toString()}`) } }, @@ -289,6 +289,9 @@ const ProfileHeaderLoaded = observer( ]) const blockHide = !isMe && (view.viewer.blocking || view.viewer.blockedBy) + const following = formatCount(view.followsCount) + const followers = formatCount(view.followersCount) + const pluralizedFollowers = pluralize(view.followersCount, 'follower') return ( <View style={pal.view}> @@ -394,13 +397,13 @@ const ProfileHeaderLoaded = observer( style={[s.flexRow, s.mr10]} onPress={onPressFollowers} accessibilityRole="button" - accessibilityLabel={`Show ${view.handle}'s followers`} - accessibilityHint={`Shows folks following ${view.handle}`}> + accessibilityLabel={`${followers} ${pluralizedFollowers}`} + accessibilityHint={'Opens followers list'}> <Text type="md" style={[s.bold, s.mr2, pal.text]}> - {formatCount(view.followersCount)} + {followers} </Text> <Text type="md" style={[pal.textLight]}> - {pluralize(view.followersCount, 'follower')} + {pluralizedFollowers} </Text> </TouchableOpacity> <TouchableOpacity @@ -408,10 +411,10 @@ const ProfileHeaderLoaded = observer( style={[s.flexRow, s.mr10]} onPress={onPressFollows} accessibilityRole="button" - accessibilityLabel={`Show ${view.handle}'s follows`} - accessibilityHint={`Shows folks followed by ${view.handle}`}> + accessibilityLabel={`${following} following`} + accessibilityHint={'Opens following list'}> <Text type="md" style={[s.bold, s.mr2, pal.text]}> - {formatCount(view.followsCount)} + {following} </Text> <Text type="md" style={[pal.textLight]}> following |