File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,18 +25,18 @@ const logoComponents = {
25
25
[ CONST . ENVIRONMENT . ADHOC ] : AdHocLogo ,
26
26
} ;
27
27
28
- function ExpensifyWordmark ( { isSmallScreenWidth, style = { } } : ExpensifyWordmarkProps ) {
28
+ function ExpensifyWordmark ( { isSmallScreenWidth, style} : ExpensifyWordmarkProps ) {
29
29
const theme = useTheme ( ) ;
30
30
const styles = useThemeStyles ( ) ;
31
31
const { environment} = useEnvironment ( ) ;
32
32
// PascalCase is required for React components, so capitalize the const here
33
- const LogoComponent = ( environment && logoComponents [ environment ] ) ?? AdHocLogo ;
33
+ const LogoComponent = environment ? logoComponents [ environment ] : AdHocLogo ;
34
34
35
35
return (
36
36
< >
37
37
< View
38
38
style = { [
39
- StyleUtils . getSignInWordmarkWidthStyle ( environment ?? '' , isSmallScreenWidth ) ,
39
+ StyleUtils . getSignInWordmarkWidthStyle ( environment , isSmallScreenWidth ) ,
40
40
StyleUtils . getHeight ( isSmallScreenWidth ? variables . signInLogoHeightSmallScreen : variables . signInLogoHeight ) ,
41
41
isSmallScreenWidth && ( environment === CONST . ENVIRONMENT . DEV || environment === CONST . ENVIRONMENT . STAGING ) ? styles . ml3 : { } ,
42
42
style ,
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ function getBorderColorStyle(borderColor: string): ViewStyle {
462
462
/**
463
463
* Returns the width style for the wordmark logo on the sign in page
464
464
*/
465
- function getSignInWordmarkWidthStyle ( environment : string , isSmallScreenWidth : boolean ) : ViewStyle {
465
+ function getSignInWordmarkWidthStyle ( environment : ValueOf < typeof CONST . ENVIRONMENT > | undefined , isSmallScreenWidth : boolean ) : ViewStyle {
466
466
if ( environment === CONST . ENVIRONMENT . DEV ) {
467
467
return isSmallScreenWidth ? { width : variables . signInLogoWidthPill } : { width : variables . signInLogoWidthLargeScreenPill } ;
468
468
}
You can’t perform that action at this time.
0 commit comments