@@ -23,7 +23,6 @@ function SubBackButton({text, testID, onPress: consumerOnPress}: SubBackButtonPr
2323 useSubContext ( SubBackButton . displayName ) ;
2424
2525 const { translate} = useLocalize ( ) ;
26- const hasCustomText = text !== undefined ;
2726 const labelText = text ?? translate ( 'common.goBack' ) ;
2827 const { ref, focused, onPress : exitSub , onFocus, isAtActiveLevel} = useSubBackButton ( ) ;
2928 const icons = useMemoizedLazyExpensifyIcons ( [ 'BackArrow' ] ) ;
@@ -49,12 +48,9 @@ function SubBackButton({text, testID, onPress: consumerOnPress}: SubBackButtonPr
4948 iconFill = { ( isHovered ) => ( isHovered ? theme . iconHovered : theme . icon ) }
5049 additionalIconStyles = { [ { width : variables . iconSizeNormal , height : variables . iconSizeNormal } , styles . opacitySemiTransparent , styles . mr1 ] }
5150 iconStyles = { [ { width : variables . iconSizeNormal , height : variables . iconSizeNormal } ] }
52- style = { hasCustomText ? styles . pv0 : undefined }
5351 wrapperStyle = { [ styles . ph5 , styles . pv3 ] }
5452 innerContainerStyle = { styles . alignItemsCenter }
5553 title = { labelText }
56- titleStyle = { hasCustomText ? styles . createMenuHeaderText : undefined }
57- shouldShowBasicTitle = { hasCustomText }
5854 accessibilityLabel = { `${ translate ( 'common.goBack' ) } , ${ labelText } ` }
5955 shouldCheckActionAllowedOnPress = { false }
6056 onPress = { handlePress }
0 commit comments