diff options
author | Hailey <me@haileyok.com> | 2024-06-25 17:02:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 17:02:43 -0700 |
commit | b23f11268992b420b064d1a45429f8871a21d452 (patch) | |
tree | 14c50a825eccbcd90543eb0d02181b6ee2c342fb /src | |
parent | dd2e173514b9aa22b898c5539f4f83f10d9b09f4 (diff) | |
download | voidsky-b23f11268992b420b064d1a45429f8871a21d452.tar.zst |
Remove starterpack gate (#4645)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/statsig/gates.ts | 1 | ||||
-rw-r--r-- | src/view/screens/Profile.tsx | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index bf2484ccb..46ef934ef 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -5,4 +5,3 @@ export type Gate = | 'request_notifications_permission_after_onboarding_v2' | 'show_avi_follow_button' | 'show_follow_back_label_v2' - | 'starter_packs_enabled' diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 946f6ac54..37111c02e 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -27,15 +27,12 @@ import {useAgent, useSession} from '#/state/session' import {useSetDrawerSwipeDisabled, useSetMinimalShellMode} from '#/state/shell' import {useComposerControls} from '#/state/shell/composer' import {useAnalytics} from 'lib/analytics/analytics' -import {IS_DEV, IS_TESTFLIGHT} from 'lib/app-info' import {useSetTitle} from 'lib/hooks/useSetTitle' import {ComposeIcon2} from 'lib/icons' import {CommonNavigatorParams, NativeStackScreenProps} from 'lib/routes/types' -import {useGate} from 'lib/statsig/statsig' import {combinedDisplayName} from 'lib/strings/display-names' import {isInvalidHandle} from 'lib/strings/handles' import {colors, s} from 'lib/styles' -import {isWeb} from 'platform/detection' import {listenSoftReset} from 'state/events' import {useActorStarterPacksQuery} from 'state/queries/actor-starter-packs' import {PagerWithHeader} from 'view/com/pager/PagerWithHeader' @@ -170,9 +167,6 @@ function ProfileScreenLoaded({ const [currentPage, setCurrentPage] = React.useState(0) const {_} = useLingui() const setDrawerSwipeDisabled = useSetDrawerSwipeDisabled() - const gate = useGate() - const starterPacksEnabled = - IS_DEV || IS_TESTFLIGHT || (!isWeb && gate('starter_packs_enabled')) const [scrollViewTag, setScrollViewTag] = React.useState<number | null>(null) @@ -205,8 +199,7 @@ function ProfileScreenLoaded({ const showLikesTab = isMe const showFeedsTab = isMe || (profile.associated?.feedgens || 0) > 0 const showStarterPacksTab = - starterPacksEnabled && - (isMe || !!starterPacksQuery.data?.pages?.[0].starterPacks.length) + isMe || !!starterPacksQuery.data?.pages?.[0].starterPacks.length const showListsTab = hasSession && (isMe || (profile.associated?.lists || 0) > 0) |