From e51eb391df754d02f006220eef177ef8c0cd0795 Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 29 Aug 2024 20:09:11 +0100 Subject: [PATCH] Enable show_follow_back_label_v2 (#5022) --- src/lib/statsig/gates.ts | 1 - src/view/com/post-thread/PostThreadFollowBtn.tsx | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index 39594bdb..d4478477 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -3,7 +3,6 @@ export type Gate = | 'debug_show_feedcontext' | 'fixed_bottom_bar' | 'onboarding_minimum_interests' - | 'show_follow_back_label_v2' | 'suggested_feeds_interstitial' | 'video_debug' | 'videos' diff --git a/src/view/com/post-thread/PostThreadFollowBtn.tsx b/src/view/com/post-thread/PostThreadFollowBtn.tsx index 6b6316ee..914ee3b6 100644 --- a/src/view/com/post-thread/PostThreadFollowBtn.tsx +++ b/src/view/com/post-thread/PostThreadFollowBtn.tsx @@ -6,7 +6,6 @@ import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useNavigation} from '@react-navigation/native' -import {useGate} from '#/lib/statsig/statsig' import {logger} from '#/logger' import {track} from 'lib/analytics/analytics' import {usePalette} from 'lib/hooks/usePalette' @@ -48,7 +47,6 @@ function PostThreadFollowBtnLoaded({ 'PostThreadItem', ) const requireAuth = useRequireAuth() - const gate = useGate() const isFollowing = !!profile.viewer?.following const isFollowedBy = !!profile.viewer?.followedBy @@ -140,7 +138,7 @@ function PostThreadFollowBtnLoaded({ style={[!isFollowing ? palInverted.text : pal.text, s.bold]} numberOfLines={1}> {!isFollowing ? ( - isFollowedBy && gate('show_follow_back_label_v2') ? ( + isFollowedBy ? ( Follow Back ) : ( Follow