diff options
author | dan <dan.abramov@gmail.com> | 2024-04-10 19:36:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 19:36:37 +0100 |
commit | 427f3a848d3bdc2e9c4b6b7cb2b8699511339ee2 (patch) | |
tree | e50dd6fc56e45170730223c53180389cfab676cf /src/view/screens/Search/Search.tsx | |
parent | bf974b147ec8ba2b84803d17f8ca1f9291726ed2 (diff) | |
download | voidsky-427f3a848d3bdc2e9c4b6b7cb2b8699511339ee2.tar.zst |
[Statsig] Typecheck gates (#3467)
* Typecheck gates * Lint against untyped useGate() * Alphabetic
Diffstat (limited to 'src/view/screens/Search/Search.tsx')
-rw-r--r-- | src/view/screens/Search/Search.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index fe7a52234..0f24252ce 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -22,7 +22,7 @@ import {HITSLOP_10} from '#/lib/constants' import {usePalette} from '#/lib/hooks/usePalette' import {MagnifyingGlassIcon} from '#/lib/icons' import {NavigationProp} from '#/lib/routes/types' -import {useNewSearchGate} from '#/lib/statsig/gates' +import {useGate} from '#/lib/statsig/statsig' import {augmentSearchQuery} from '#/lib/strings/helpers' import {s} from '#/lib/styles' import {logger} from '#/logger' @@ -337,7 +337,7 @@ export function SearchScreenInner({ const {isDesktop} = useWebMediaQueries() const {_} = useLingui() - const isNewSearch = useNewSearchGate() + const isNewSearch = useGate('new_search') const onPageSelected = React.useCallback( (index: number) => { |