Skip to content

Commit 594056b

Browse files
committed
Minor TS improvement
1 parent 9dbe365 commit 594056b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/ExpensifyWordmark.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function ExpensifyWordmark({isSmallScreenWidth, style}: ExpensifyWordmarkProps)
3636
<>
3737
<View
3838
style={[
39-
StyleUtils.getSignInWordmarkWidthStyle(environment, isSmallScreenWidth),
39+
StyleUtils.getSignInWordmarkWidthStyle(isSmallScreenWidth, environment),
4040
StyleUtils.getHeight(isSmallScreenWidth ? variables.signInLogoHeightSmallScreen : variables.signInLogoHeight),
4141
isSmallScreenWidth && (environment === CONST.ENVIRONMENT.DEV || environment === CONST.ENVIRONMENT.STAGING) ? styles.ml3 : {},
4242
style,

src/styles/StyleUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ function getBorderColorStyle(borderColor: string): ViewStyle {
462462
/**
463463
* Returns the width style for the wordmark logo on the sign in page
464464
*/
465-
function getSignInWordmarkWidthStyle(environment: ValueOf<typeof CONST.ENVIRONMENT> | undefined, isSmallScreenWidth: boolean): ViewStyle {
465+
function getSignInWordmarkWidthStyle(isSmallScreenWidth: boolean, environment?: ValueOf<typeof CONST.ENVIRONMENT>): ViewStyle {
466466
if (environment === CONST.ENVIRONMENT.DEV) {
467467
return isSmallScreenWidth ? {width: variables.signInLogoWidthPill} : {width: variables.signInLogoWidthLargeScreenPill};
468468
}

0 commit comments

Comments
 (0)