Enable show_follow_back_label_v2 (#5022)

zio/stable
dan 2024-08-29 20:09:11 +01:00 committed by GitHub
parent 9ebc2785e4
commit e51eb391df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -3,7 +3,6 @@ export type Gate =
| 'debug_show_feedcontext' | 'debug_show_feedcontext'
| 'fixed_bottom_bar' | 'fixed_bottom_bar'
| 'onboarding_minimum_interests' | 'onboarding_minimum_interests'
| 'show_follow_back_label_v2'
| 'suggested_feeds_interstitial' | 'suggested_feeds_interstitial'
| 'video_debug' | 'video_debug'
| 'videos' | 'videos'

View File

@ -6,7 +6,6 @@ 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'
import {useGate} from '#/lib/statsig/statsig'
import {logger} from '#/logger' import {logger} from '#/logger'
import {track} from 'lib/analytics/analytics' import {track} from 'lib/analytics/analytics'
import {usePalette} from 'lib/hooks/usePalette' import {usePalette} from 'lib/hooks/usePalette'
@ -48,7 +47,6 @@ function PostThreadFollowBtnLoaded({
'PostThreadItem', 'PostThreadItem',
) )
const requireAuth = useRequireAuth() const requireAuth = useRequireAuth()
const gate = useGate()
const isFollowing = !!profile.viewer?.following const isFollowing = !!profile.viewer?.following
const isFollowedBy = !!profile.viewer?.followedBy const isFollowedBy = !!profile.viewer?.followedBy
@ -140,7 +138,7 @@ function PostThreadFollowBtnLoaded({
style={[!isFollowing ? palInverted.text : pal.text, s.bold]} style={[!isFollowing ? palInverted.text : pal.text, s.bold]}
numberOfLines={1}> numberOfLines={1}>
{!isFollowing ? ( {!isFollowing ? (
isFollowedBy && gate('show_follow_back_label_v2') ? ( isFollowedBy ? (
<Trans>Follow Back</Trans> <Trans>Follow Back</Trans>
) : ( ) : (
<Trans>Follow</Trans> <Trans>Follow</Trans>