From 86abeb80b9e863b0a1d5eaebe725a676cee4ae09 Mon Sep 17 00:00:00 2001 From: Wesley <46491851+wscld@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:59:12 -0300 Subject: [PATCH] Renaming the Follow button to "Follow back" when followed by user (#5281) * Renaming the follow button to follow back when followed by user * Fixing conditions and reusing existing translation --- src/screens/Profile/Header/ProfileHeaderStandard.tsx | 2 ++ src/view/com/profile/FollowButton.tsx | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/Profile/Header/ProfileHeaderStandard.tsx index cf5fcb97..846fa442 100644 --- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx +++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx @@ -219,6 +219,8 @@ let ProfileHeaderStandard = ({ {profile.viewer?.following ? ( Following + ) : profile.viewer?.followedBy ? ( + Follow Back ) : ( Follow )} diff --git a/src/view/com/profile/FollowButton.tsx b/src/view/com/profile/FollowButton.tsx index 42adea3c..aaa5d345 100644 --- a/src/view/com/profile/FollowButton.tsx +++ b/src/view/com/profile/FollowButton.tsx @@ -61,7 +61,7 @@ export function FollowButton({ label={_(msg({message: 'Unfollow', context: 'action'}))} /> ) - } else { + } else if (!profile.viewer.followedBy) { return (