Merge pull request #8875 from internet-development/caidan/app-1406-follow-suggestions-card-to-show-follow-back
[APP-1406] follow suggestions card to show follow back
This commit is contained in:
@@ -515,7 +515,7 @@ export function FollowButtonInner({
|
|||||||
)
|
)
|
||||||
const followLabel = _(
|
const followLabel = _(
|
||||||
msg({
|
msg({
|
||||||
message: 'Follow',
|
message: profile.viewer?.followedBy ? 'Follow back' : 'Follow',
|
||||||
comment: 'User is not following this account, click to follow',
|
comment: 'User is not following this account, click to follow',
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ let ProfileHeaderStandard = ({
|
|||||||
{profile.viewer?.following ? (
|
{profile.viewer?.following ? (
|
||||||
<Trans>Following</Trans>
|
<Trans>Following</Trans>
|
||||||
) : profile.viewer?.followedBy ? (
|
) : profile.viewer?.followedBy ? (
|
||||||
<Trans>Follow Back</Trans>
|
<Trans>Follow back</Trans>
|
||||||
) : (
|
) : (
|
||||||
<Trans>Follow</Trans>
|
<Trans>Follow</Trans>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {AppBskyActorDefs} from '@atproto/api'
|
import {type AppBskyActorDefs} from '@atproto/api'
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
@@ -126,7 +126,7 @@ function PostThreadFollowBtnLoaded({
|
|||||||
<ButtonText>
|
<ButtonText>
|
||||||
{!isFollowing ? (
|
{!isFollowing ? (
|
||||||
isFollowedBy ? (
|
isFollowedBy ? (
|
||||||
<Trans>Follow Back</Trans>
|
<Trans>Follow back</Trans>
|
||||||
) : (
|
) : (
|
||||||
<Trans>Follow</Trans>
|
<Trans>Follow</Trans>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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 {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
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 {useProfileFollowMutationQueue} from '#/state/queries/profile'
|
||||||
import * as bsky from '#/types/bsky'
|
import type * as bsky from '#/types/bsky'
|
||||||
import {Button, ButtonType} from '../util/forms/Button'
|
import {Button, type ButtonType} from '../util/forms/Button'
|
||||||
import * as Toast from '../util/Toast'
|
import * as Toast from '../util/Toast'
|
||||||
|
|
||||||
export function FollowButton({
|
export function FollowButton({
|
||||||
@@ -78,7 +78,7 @@ export function FollowButton({
|
|||||||
type={unfollowedType}
|
type={unfollowedType}
|
||||||
labelStyle={labelStyle}
|
labelStyle={labelStyle}
|
||||||
onPress={onPressFollow}
|
onPress={onPressFollow}
|
||||||
label={_(msg({message: 'Follow Back', context: 'action'}))}
|
label={_(msg({message: 'Follow back', context: 'action'}))}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user