diff --git a/src/pages/signin/SignInModal.tsx b/src/pages/signin/SignInModal.tsx index b2ee9d218da9..b53092f5652a 100644 --- a/src/pages/signin/SignInModal.tsx +++ b/src/pages/signin/SignInModal.tsx @@ -26,7 +26,7 @@ function SignInModal() { testID={SignInModal.displayName} > Navigation.goBack()} /> - + ); } diff --git a/src/pages/signin/SignInPage.tsx b/src/pages/signin/SignInPage.tsx index a033088f7727..fd44b3a6a91d 100644 --- a/src/pages/signin/SignInPage.tsx +++ b/src/pages/signin/SignInPage.tsx @@ -1,10 +1,10 @@ import Str from 'expensify-common/lib/str'; import React, {useEffect, useRef, useState} from 'react'; -import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; import type {OnyxEntry} from 'react-native-onyx'; import ColorSchemeWrapper from '@components/ColorSchemeWrapper'; import CustomStatusBarAndBackground from '@components/CustomStatusBarAndBackground'; +import ScreenWrapper from '@components/ScreenWrapper'; import ThemeProvider from '@components/ThemeProvider'; import ThemeStylesProvider from '@components/ThemeStylesProvider'; import useLocalize from '@hooks/useLocalize'; @@ -48,7 +48,9 @@ type SignInPageInnerOnyxProps = { preferredLocale: OnyxEntry; }; -type SignInPageInnerProps = SignInPageInnerOnyxProps; +type SignInPageInnerProps = SignInPageInnerOnyxProps & { + shouldEnableMaxHeight?: boolean; +}; type RenderOption = { shouldShowLoginForm: boolean; @@ -124,7 +126,7 @@ function getRenderOptions({ }; } -function SignInPageInner({credentials, account, activeClients = [], preferredLocale}: SignInPageInnerProps) { +function SignInPageInner({credentials, account, activeClients = [], preferredLocale, shouldEnableMaxHeight = true}: SignInPageInnerProps) { const styles = useThemeStyles(); const StyleUtils = useStyleUtils(); const {translate, formatPhoneNumber} = useLocalize(); @@ -245,7 +247,8 @@ function SignInPageInner({credentials, account, activeClients = [], preferredLoc return ( // Bottom SafeAreaView is removed so that login screen svg displays correctly on mobile. // The SVG should flow under the Home Indicator on iOS. - @@ -281,7 +284,7 @@ function SignInPageInner({credentials, account, activeClients = [], preferredLoc )} - + ); }