File tree Expand file tree Collapse file tree
src/pages/iou/request/step/IOURequestStepScan Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -834,22 +834,20 @@ function IOURequestStepScan({
834834 height = { CONST . RECEIPT . SHUTTER_SIZE }
835835 />
836836 </ PressableWithFeedback >
837- { hasFlash && (
838- < PressableWithFeedback
839- role = { CONST . ROLE . BUTTON }
840- accessibilityLabel = { translate ( 'receipt.flash' ) }
841- style = { [ styles . alignItemsEnd ] }
842- disabled = { cameraPermissionStatus !== RESULTS . GRANTED }
843- onPress = { ( ) => setFlash ( ( prevFlash ) => ! prevFlash ) }
844- >
845- < Icon
846- height = { 32 }
847- width = { 32 }
848- src = { flash ? Expensicons . Bolt : Expensicons . boltSlash }
849- fill = { theme . textSupporting }
850- />
851- </ PressableWithFeedback >
852- ) }
837+ < PressableWithFeedback
838+ role = { CONST . ROLE . BUTTON }
839+ accessibilityLabel = { translate ( 'receipt.flash' ) }
840+ style = { [ styles . alignItemsEnd , ! hasFlash && styles . opacity0 ] }
841+ disabled = { cameraPermissionStatus !== RESULTS . GRANTED || ! hasFlash }
842+ onPress = { ( ) => setFlash ( ( prevFlash ) => ! prevFlash ) }
843+ >
844+ < Icon
845+ height = { 32 }
846+ width = { 32 }
847+ src = { flash ? Expensicons . Bolt : Expensicons . boltSlash }
848+ fill = { theme . textSupporting }
849+ />
850+ </ PressableWithFeedback >
853851 </ View >
854852 { startLocationPermissionFlow && ! ! fileResize && (
855853 < LocationPermissionModal
Original file line number Diff line number Diff line change @@ -917,7 +917,7 @@ function IOURequestStepScan({
917917 wrapperStyle = { styles . productTrainingTooltipWrapper }
918918 shiftVertical = { - elementTop }
919919 >
920- < View style = { [ styles . flex1 , styles . alignItemsCenter , styles . justifyContentCenter ] } >
920+ < View style = { [ styles . flex1 , ! isMobile ( ) && styles . alignItemsCenter , styles . justifyContentCenter ] } >
921921 { ! ( isDraggingOver ?? isDraggingOverWrapper ) && ( isMobile ( ) ? mobileCameraView ( ) : desktopUploadView ( ) ) }
922922 </ View >
923923 </ EducationalTooltip >
You can’t perform that action at this time.
0 commit comments