Skip to content

Commit

Permalink
refactor containerStyles, contentContainerStyles on signin page
Browse files Browse the repository at this point in the history
  • Loading branch information
aimane-chnaif committed Oct 7, 2022
1 parent 32111b9 commit ad8e37b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/pages/signin/SignInPageLayout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,17 @@ const SignInPageLayout = (props) => {
</Pressable>
);

const containerStyles = [];
const contentContainerStyles = [styles.flex1];
let containerStyles = [styles.flex1, styles.signInPageInner];
let contentContainerStyles = [styles.flex1, styles.flexRow];

const isLongMediumScreenWidth = props.isMediumScreenWidth && props.windowHeight >= variables.minHeightToShowGraphics;

if (props.isSmallScreenWidth) {
containerStyles.push(styles.flex1);
containerStyles = [styles.flex1];
contentContainerStyles = [styles.flex1];
} else if (isLongMediumScreenWidth) {
containerStyles.push(styles.dFlex, styles.signInPageInner, styles.flexColumnReverse, styles.justifyContentBetween);
} else {
containerStyles.push(styles.flex1, styles.signInPageInner);
contentContainerStyles.push(styles.flexRow);
containerStyles = [styles.dFlex, styles.signInPageInner, styles.flexColumnReverse, styles.justifyContentBetween];
contentContainerStyles = [styles.flex1];
}

return (
Expand Down

0 comments on commit ad8e37b

Please sign in to comment.