Remove search from disabled PWI state (#4723)
This commit is contained in:
		
							parent
							
								
									14c2d75d49
								
							
						
					
					
						commit
						cacc4c5068
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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<NavigationProp>()
 | 
			
		||||
  const gate = useGate()
 | 
			
		||||
 | 
			
		||||
  const isFirstScreen = screenState === ScreenState.S_LoginOrCreateAccount
 | 
			
		||||
  React.useEffect(() => {
 | 
			
		||||
| 
						 | 
				
			
			@ -96,7 +98,10 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) {
 | 
			
		|||
              }}
 | 
			
		||||
            />
 | 
			
		||||
          </Pressable>
 | 
			
		||||
        ) : isNative && !hasSession && isFirstScreen ? (
 | 
			
		||||
        ) : isNative &&
 | 
			
		||||
          !hasSession &&
 | 
			
		||||
          isFirstScreen &&
 | 
			
		||||
          !gate('native_pwi_disabled') ? (
 | 
			
		||||
          <Pressable
 | 
			
		||||
            accessibilityHint={_(msg`Search for users`)}
 | 
			
		||||
            accessibilityLabel={_(msg`Search for users`)}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue