diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Profile/Header/ProfileHeaderStandard.tsx | 2 | ||||
-rw-r--r-- | src/view/com/profile/FollowButton.tsx | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/Profile/Header/ProfileHeaderStandard.tsx index cf5fcb97e..846fa4424 100644 --- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx +++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx @@ -219,6 +219,8 @@ let ProfileHeaderStandard = ({ <ButtonText> {profile.viewer?.following ? ( <Trans>Following</Trans> + ) : profile.viewer?.followedBy ? ( + <Trans>Follow Back</Trans> ) : ( <Trans>Follow</Trans> )} diff --git a/src/view/com/profile/FollowButton.tsx b/src/view/com/profile/FollowButton.tsx index 42adea3cf..aaa5d3454 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 ( <Button type={unfollowedType} @@ -70,5 +70,14 @@ export function FollowButton({ label={_(msg({message: 'Follow', context: 'action'}))} /> ) + } else { + return ( + <Button + type={unfollowedType} + labelStyle={labelStyle} + onPress={onPressFollow} + label={_(msg({message: 'Follow Back', context: 'action'}))} + /> + ) } } |