From cacc4c50687c420e68a569e2b586e087917130ba Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 2 Jul 2024 19:15:04 -0500 Subject: [PATCH] Remove search from disabled PWI state (#4723) --- src/view/com/auth/LoggedOut.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/view/com/auth/LoggedOut.tsx b/src/view/com/auth/LoggedOut.tsx index 29127ec4..cc71f648 100644 --- a/src/view/com/auth/LoggedOut.tsx +++ b/src/view/com/auth/LoggedOut.tsx @@ -17,6 +17,7 @@ import { } from '#/state/shell/logged-out' import {useSetMinimalShellMode} from '#/state/shell/minimal-mode' import {NavigationProp} from 'lib/routes/types' +import {useGate} from 'lib/statsig/statsig' import {ErrorBoundary} from '#/view/com/util/ErrorBoundary' import {Text} from '#/view/com/util/text/Text' import {Login} from '#/screens/Login' @@ -52,6 +53,7 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) { }) const {clearRequestedAccount} = useLoggedOutViewControls() const navigation = useNavigation() + const gate = useGate() const isFirstScreen = screenState === ScreenState.S_LoginOrCreateAccount React.useEffect(() => { @@ -96,7 +98,10 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) { }} /> - ) : isNative && !hasSession && isFirstScreen ? ( + ) : isNative && + !hasSession && + isFirstScreen && + !gate('native_pwi_disabled') ? (