From a3e8e2e68affb7264e64efb9df032c326dc95907 Mon Sep 17 00:00:00 2001 From: aimane-chnaif Date: Fri, 5 Aug 2022 10:33:31 -0600 Subject: [PATCH] fix page size changing after use wrong 2fa and clicking on Save button --- .../SignInPageLayout/SignInPageContent.js | 82 ++++++++++--------- 1 file changed, 45 insertions(+), 37 deletions(-) diff --git a/src/pages/signin/SignInPageLayout/SignInPageContent.js b/src/pages/signin/SignInPageLayout/SignInPageContent.js index 4006d65a0093..522bccdcc13f 100755 --- a/src/pages/signin/SignInPageLayout/SignInPageContent.js +++ b/src/pages/signin/SignInPageLayout/SignInPageContent.js @@ -37,54 +37,62 @@ const SignInPageContent = props => ( showsVerticalScrollIndicator={false} style={[ styles.h100, - styles.alignSelfCenter, + !props.isSmallScreenWidth && styles.alignSelfCenter, !props.isSmallScreenWidth && styles.signInPageWideLeftContainer, ]} contentContainerStyle={[ scrollViewContentContainerStyles, + styles.alignItemsCenter, !props.isSmallScreenWidth && styles.ph6, ]} > - - + - - + + + + + {props.shouldShowWelcomeText && ( + + {props.welcomeText} + + )} + {props.children} + + + + - {props.shouldShowWelcomeText && ( - - {props.welcomeText} - - )} - {props.children} - - - - + );