Remove search from disabled PWI state (#4723)
parent
14c2d75d49
commit
cacc4c5068
|
@ -17,6 +17,7 @@ import {
|
||||||
} from '#/state/shell/logged-out'
|
} from '#/state/shell/logged-out'
|
||||||
import {useSetMinimalShellMode} from '#/state/shell/minimal-mode'
|
import {useSetMinimalShellMode} from '#/state/shell/minimal-mode'
|
||||||
import {NavigationProp} from 'lib/routes/types'
|
import {NavigationProp} from 'lib/routes/types'
|
||||||
|
import {useGate} from 'lib/statsig/statsig'
|
||||||
import {ErrorBoundary} from '#/view/com/util/ErrorBoundary'
|
import {ErrorBoundary} from '#/view/com/util/ErrorBoundary'
|
||||||
import {Text} from '#/view/com/util/text/Text'
|
import {Text} from '#/view/com/util/text/Text'
|
||||||
import {Login} from '#/screens/Login'
|
import {Login} from '#/screens/Login'
|
||||||
|
@ -52,6 +53,7 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) {
|
||||||
})
|
})
|
||||||
const {clearRequestedAccount} = useLoggedOutViewControls()
|
const {clearRequestedAccount} = useLoggedOutViewControls()
|
||||||
const navigation = useNavigation<NavigationProp>()
|
const navigation = useNavigation<NavigationProp>()
|
||||||
|
const gate = useGate()
|
||||||
|
|
||||||
const isFirstScreen = screenState === ScreenState.S_LoginOrCreateAccount
|
const isFirstScreen = screenState === ScreenState.S_LoginOrCreateAccount
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
|
@ -96,7 +98,10 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Pressable>
|
</Pressable>
|
||||||
) : isNative && !hasSession && isFirstScreen ? (
|
) : isNative &&
|
||||||
|
!hasSession &&
|
||||||
|
isFirstScreen &&
|
||||||
|
!gate('native_pwi_disabled') ? (
|
||||||
<Pressable
|
<Pressable
|
||||||
accessibilityHint={_(msg`Search for users`)}
|
accessibilityHint={_(msg`Search for users`)}
|
||||||
accessibilityLabel={_(msg`Search for users`)}
|
accessibilityLabel={_(msg`Search for users`)}
|
||||||
|
|
Loading…
Reference in New Issue