Remove show_avi_follow_button (#4900)
parent
3ea8eb6013
commit
a0756c53be
|
@ -4,7 +4,6 @@ export type Gate =
|
||||||
| 'new_user_guided_tour'
|
| 'new_user_guided_tour'
|
||||||
| 'onboarding_minimum_interests'
|
| 'onboarding_minimum_interests'
|
||||||
| 'session_withproxy_fix'
|
| 'session_withproxy_fix'
|
||||||
| 'show_avi_follow_button'
|
|
||||||
| 'show_follow_back_label_v2'
|
| 'show_follow_back_label_v2'
|
||||||
| 'suggested_feeds_interstitial'
|
| 'suggested_feeds_interstitial'
|
||||||
| 'video_debug'
|
| 'video_debug'
|
||||||
|
|
|
@ -7,7 +7,6 @@ import {useNavigation} from '@react-navigation/native'
|
||||||
|
|
||||||
import {createHitslop} from '#/lib/constants'
|
import {createHitslop} from '#/lib/constants'
|
||||||
import {NavigationProp} from '#/lib/routes/types'
|
import {NavigationProp} from '#/lib/routes/types'
|
||||||
import {useGate} from '#/lib/statsig/statsig'
|
|
||||||
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
||||||
import {useProfileShadow} from '#/state/cache/profile-shadow'
|
import {useProfileShadow} from '#/state/cache/profile-shadow'
|
||||||
import {useSession} from '#/state/session'
|
import {useSession} from '#/state/session'
|
||||||
|
@ -37,7 +36,6 @@ export function AviFollowButton({
|
||||||
profile: profile,
|
profile: profile,
|
||||||
logContext: 'AvatarButton',
|
logContext: 'AvatarButton',
|
||||||
})
|
})
|
||||||
const gate = useGate()
|
|
||||||
const {currentAccount, hasSession} = useSession()
|
const {currentAccount, hasSession} = useSession()
|
||||||
const navigation = useNavigation<NavigationProp>()
|
const navigation = useNavigation<NavigationProp>()
|
||||||
|
|
||||||
|
@ -80,7 +78,7 @@ export function AviFollowButton({
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
return hasSession && gate('show_avi_follow_button') ? (
|
return hasSession ? (
|
||||||
<View style={a.relative}>
|
<View style={a.relative}>
|
||||||
{children}
|
{children}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue