Skip to content

Commit 669ac33

Browse files
authored
Merge pull request #36626 from rayane-djouah/replace-usages-of-isInModal-and-shouldShowSmallScreen-props-in-components
Fix: Login - Expensify logo is too close to the top of the screen
2 parents a21cfbc + ce3e99e commit 669ac33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/signin/SignInPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function SignInPageInner({credentials, account, activeClients = [], preferredLoc
128128
const styles = useThemeStyles();
129129
const StyleUtils = useStyleUtils();
130130
const {translate, formatPhoneNumber} = useLocalize();
131-
const {shouldUseNarrowLayout} = useResponsiveLayout();
131+
const {shouldUseNarrowLayout, isInModal} = useResponsiveLayout();
132132
const safeAreaInsets = useSafeAreaInsets();
133133
const signInPageLayoutRef = useRef<SignInPageLayoutRef>(null);
134134
const loginFormRef = useRef<InputHandle>(null);
@@ -246,7 +246,7 @@ function SignInPageInner({credentials, account, activeClients = [], preferredLoc
246246
// Bottom SafeAreaView is removed so that login screen svg displays correctly on mobile.
247247
// The SVG should flow under the Home Indicator on iOS.
248248
<View
249-
style={[styles.signInPage, StyleUtils.getSafeAreaPadding({...safeAreaInsets, bottom: 0, top: shouldUseNarrowLayout ? 0 : safeAreaInsets.top}, 1)]}
249+
style={[styles.signInPage, StyleUtils.getSafeAreaPadding({...safeAreaInsets, bottom: 0, top: isInModal ? 0 : safeAreaInsets.top}, 1)]}
250250
testID={SignInPageInner.displayName}
251251
>
252252
<SignInPageLayout

0 commit comments

Comments
 (0)