Skip to content

Commit

Permalink
Merge pull request #6670 from Expensify/Rory-FixiPadProLayout
Browse files Browse the repository at this point in the history
[CP Stg] Fix iPad pro SignInPageLayout
  • Loading branch information
luacmartins authored Dec 9, 2021
2 parents 9efb4d5 + 07306f3 commit 7708155
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/withWindowDimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function (WrappedComponent) {
onDimensionChange(newDimensions) {
const {window} = newDimensions;
const isSmallScreenWidth = window.width <= variables.mobileResponsiveWidthBreakpoint;
const isMediumScreenWidth = !isSmallScreenWidth && window.width <= variables.mediumScreenResponsiveWidthBreakpoint;
const isMediumScreenWidth = !isSmallScreenWidth && window.width <= variables.tabletResponsiveWidthBreakpoint;
this.setState({
windowHeight: window.height,
windowWidth: window.width,
Expand Down
1 change: 0 additions & 1 deletion src/pages/signin/SignInPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class SignInPage extends Component {
<SignInPageLayout
welcomeText={welcomeText}
shouldShowWelcomeText={showLoginForm || showPasswordForm || !showResendValidationLinkForm}
shouldShowWelcomeScreenshot={showLoginForm}
>
{/* LoginForm and PasswordForm must use the isVisible prop. This keeps them mounted, but visually hidden
so that password managers can access the values. Conditionally rendering these components will break this feature. */}
Expand Down

0 comments on commit 7708155

Please sign in to comment.