From 7c4258f8a8d197fb980723f4c880e710249830e0 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 19 Jan 2026 11:21:53 -0600 Subject: [PATCH] Remove gates we don't need --- src/components/FeedInterstitials.tsx | 8 ++-- .../PostControls/ShareMenu/index.tsx | 9 +---- .../contacts/FindContactsBannerNUX.tsx | 5 +-- .../dialogs/nuxs/LiveNowBetaDialog.tsx | 6 +-- src/lib/statsig/gates.ts | 18 +-------- src/screens/Onboarding/StepFinished/index.tsx | 16 +++----- src/screens/Onboarding/index.tsx | 16 ++------ .../Settings/AppIconSettings/index.tsx | 7 +--- src/screens/Settings/Settings.tsx | 30 ++++++--------- src/state/service-config.tsx | 5 +-- src/view/com/posts/PostFeed.tsx | 9 ++--- src/view/com/posts/PostFeedItem.tsx | 37 ++++++------------- .../com/util/load-latest/LoadLatestBtn.tsx | 6 --- src/view/shell/bottom-bar/BottomBar.tsx | 11 ++---- src/view/shell/bottom-bar/BottomBarWeb.tsx | 15 +++----- src/view/shell/desktop/LeftNav.tsx | 11 ++---- 16 files changed, 59 insertions(+), 150 deletions(-) diff --git a/src/components/FeedInterstitials.tsx b/src/components/FeedInterstitials.tsx index 0034e120be..14887adb7c 100644 --- a/src/components/FeedInterstitials.tsx +++ b/src/components/FeedInterstitials.tsx @@ -7,7 +7,7 @@ import {useLingui} from '@lingui/react' import {useNavigation} from '@react-navigation/native' import {type NavigationProp} from '#/lib/routes/types' -import {logEvent, useGate} from '#/lib/statsig/statsig' +import {logEvent} from '#/lib/statsig/statsig' import {logger} from '#/logger' import {type MetricEvents} from '#/logger/metrics' import {useModerationOpts} from '#/state/preferences/moderation-opts' @@ -435,7 +435,6 @@ export function ProfileGrid({ }) { const t = useTheme() const {_} = useLingui() - const gate = useGate() const moderationOpts = useModerationOpts() const {gtMobile} = useBreakpoints() const followDialogControl = useDialogControl() @@ -443,7 +442,6 @@ export function ProfileGrid({ const isLoading = isSuggestionsLoading || !moderationOpts const isProfileHeaderContext = viewContext === 'profileHeader' const isFeedContext = viewContext === 'feed' - const showDismissButton = onDismiss && gate('suggested_users_dismiss') const maxLength = gtMobile ? 3 : isProfileHeaderContext ? 12 : 6 const minLength = gtMobile ? 3 : 4 @@ -584,12 +582,12 @@ export function ProfileGrid({ (hovered || pressed) && t.atoms.border_contrast_high, ]}> - {showDismissButton && ( + {onDismiss && (