diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index d540cde1..301746fb 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -5,7 +5,6 @@ export type Gate = | 'disable_poll_on_discover_v2' | 'hide_vertical_scroll_indicators' | 'new_profile_scroll_component' - | 'new_search' | 'receive_updates' | 'show_follow_back_label_v2' | 'start_session_with_following_v2' diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index 0b11ff76..36e780c7 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -407,7 +407,6 @@ export function SearchScreenInner({ const {isDesktop} = useWebMediaQueries() const [activeTab, setActiveTab] = React.useState(0) const {_} = useLingui() - const gate = useGate() const onPageSelected = React.useCallback( (index: number) => { @@ -420,74 +419,46 @@ export function SearchScreenInner({ const sections = React.useMemo(() => { if (!query) return [] - if (gate('new_search')) { - if (hasSession) { - return [ - { - title: _(msg`Top`), - component: ( - - ), - }, - { - title: _(msg`Latest`), - component: ( - - ), - }, - { - title: _(msg`People`), - component: ( - - ), - }, - ] - } else { - return [ - { - title: _(msg`People`), - component: ( - - ), - }, - ] - } + if (hasSession) { + return [ + { + title: _(msg`Top`), + component: ( + + ), + }, + { + title: _(msg`Latest`), + component: ( + + ), + }, + { + title: _(msg`People`), + component: ( + + ), + }, + ] } else { - if (hasSession) { - return [ - { - title: _(msg`Posts`), - component: ( - - ), - }, - { - title: _(msg`Users`), - component: ( - - ), - }, - ] - } else { - return [ - { - title: _(msg`Users`), - component: ( - - ), - }, - ] - } + return [ + { + title: _(msg`People`), + component: ( + + ), + }, + ] } - }, [hasSession, gate, _, query, activeTab]) + }, [hasSession, _, query, activeTab]) if (hasSession) { return query ? (