From b1ad229771103f9721e26a0a71b3890ec9d874d6 Mon Sep 17 00:00:00 2001 From: Caidan Williams Date: Wed, 20 Aug 2025 11:23:19 -0700 Subject: fix: show 'Follow back' label if user is followed by profile Updated ProfileCard.FollowButton label to display 'Follow back' when the current user is followed by the profile being viewed. --- src/components/ProfileCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/ProfileCard.tsx') diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index 5c99474a2..d3a2b8f1f 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -515,7 +515,7 @@ export function FollowButtonInner({ ) const followLabel = _( msg({ - message: 'Follow', + message: profile.viewer?.followedBy ? 'Follow back' : 'Follow', comment: 'User is not following this account, click to follow', }), ) -- cgit 1.4.1 From 994003e6037e994dde3f96593ea6074ef5d68a61 Mon Sep 17 00:00:00 2001 From: Caidan Williams Date: Thu, 21 Aug 2025 13:53:44 -0700 Subject: fix: capitalization of "Follow back" to "Follow Back" --- src/components/ProfileCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/ProfileCard.tsx') diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index d3a2b8f1f..ea7333c2e 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -515,7 +515,7 @@ export function FollowButtonInner({ ) const followLabel = _( msg({ - message: profile.viewer?.followedBy ? 'Follow back' : 'Follow', + message: profile.viewer?.followedBy ? 'Follow Back' : 'Follow', comment: 'User is not following this account, click to follow', }), ) -- cgit 1.4.1 From 7a1adfe67ccc90abc5ab594e8fd90e8cd0a03af0 Mon Sep 17 00:00:00 2001 From: Caidan Williams Date: Thu, 21 Aug 2025 15:55:01 -0700 Subject: refactor: all uses of "Follow Back" to "Follow back" --- src/components/ProfileCard.tsx | 2 +- src/screens/Profile/Header/ProfileHeaderStandard.tsx | 2 +- src/view/com/post-thread/PostThreadFollowBtn.tsx | 4 ++-- src/view/com/profile/FollowButton.tsx | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/components/ProfileCard.tsx') diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index ea7333c2e..d3a2b8f1f 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -515,7 +515,7 @@ export function FollowButtonInner({ ) const followLabel = _( msg({ - message: profile.viewer?.followedBy ? 'Follow Back' : 'Follow', + message: profile.viewer?.followedBy ? 'Follow back' : 'Follow', comment: 'User is not following this account, click to follow', }), ) diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/Profile/Header/ProfileHeaderStandard.tsx index 1df35d5e0..32111dd3b 100644 --- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx +++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx @@ -247,7 +247,7 @@ let ProfileHeaderStandard = ({ {profile.viewer?.following ? ( Following ) : profile.viewer?.followedBy ? ( - Follow Back + Follow back ) : ( Follow )} diff --git a/src/view/com/post-thread/PostThreadFollowBtn.tsx b/src/view/com/post-thread/PostThreadFollowBtn.tsx index 145e919f9..fc9296cad 100644 --- a/src/view/com/post-thread/PostThreadFollowBtn.tsx +++ b/src/view/com/post-thread/PostThreadFollowBtn.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {AppBskyActorDefs} from '@atproto/api' +import {type AppBskyActorDefs} from '@atproto/api' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useNavigation} from '@react-navigation/native' @@ -126,7 +126,7 @@ function PostThreadFollowBtnLoaded({ {!isFollowing ? ( isFollowedBy ? ( - Follow Back + Follow back ) : ( Follow ) diff --git a/src/view/com/profile/FollowButton.tsx b/src/view/com/profile/FollowButton.tsx index 656ed914a..ff9c1cd7b 100644 --- a/src/view/com/profile/FollowButton.tsx +++ b/src/view/com/profile/FollowButton.tsx @@ -1,11 +1,11 @@ -import {StyleProp, TextStyle, View} from 'react-native' +import {type StyleProp, type TextStyle, View} from 'react-native' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {Shadow} from '#/state/cache/types' +import {type Shadow} from '#/state/cache/types' import {useProfileFollowMutationQueue} from '#/state/queries/profile' -import * as bsky from '#/types/bsky' -import {Button, ButtonType} from '../util/forms/Button' +import type * as bsky from '#/types/bsky' +import {Button, type ButtonType} from '../util/forms/Button' import * as Toast from '../util/Toast' export function FollowButton({ @@ -78,7 +78,7 @@ export function FollowButton({ type={unfollowedType} labelStyle={labelStyle} onPress={onPressFollow} - label={_(msg({message: 'Follow Back', context: 'action'}))} + label={_(msg({message: 'Follow back', context: 'action'}))} /> ) } -- cgit 1.4.1