Remove show_avi_follow_button (#4900)

zio/stable
Eric Bailey 2024-08-08 12:14:15 -05:00 committed by GitHub
parent 3ea8eb6013
commit a0756c53be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -4,7 +4,6 @@ export type Gate =
| 'new_user_guided_tour'
| 'onboarding_minimum_interests'
| 'session_withproxy_fix'
| 'show_avi_follow_button'
| 'show_follow_back_label_v2'
| 'suggested_feeds_interstitial'
| 'video_debug'

View File

@ -7,7 +7,6 @@ import {useNavigation} from '@react-navigation/native'
import {createHitslop} from '#/lib/constants'
import {NavigationProp} from '#/lib/routes/types'
import {useGate} from '#/lib/statsig/statsig'
import {sanitizeDisplayName} from '#/lib/strings/display-names'
import {useProfileShadow} from '#/state/cache/profile-shadow'
import {useSession} from '#/state/session'
@ -37,7 +36,6 @@ export function AviFollowButton({
profile: profile,
logContext: 'AvatarButton',
})
const gate = useGate()
const {currentAccount, hasSession} = useSession()
const navigation = useNavigation<NavigationProp>()
@ -80,7 +78,7 @@ export function AviFollowButton({
},
]
return hasSession && gate('show_avi_follow_button') ? (
return hasSession ? (
<View style={a.relative}>
{children}