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 @@ -974,7 +974,8 @@ function IOURequestStepScan({
974974 const [ containerHeight , setContainerHeight ] = useState ( 0 ) ;
975975 const [ desktopUploadViewHeight , setDesktopUploadViewHeight ] = useState ( 0 ) ;
976976 const [ downloadAppBannerHeight , setDownloadAppBannerHeight ] = useState ( 0 ) ;
977- const shouldHideDownloadAppBanner = isMobile || downloadAppBannerHeight + desktopUploadViewHeight + styles . uploadFileView ( isSmallScreenWidth ) . paddingVertical * 2 > containerHeight ;
977+ /* We use isMobile() here to explicitly hide DownloadAppBanner component on both mobile web and native apps */
978+ const shouldHideDownloadAppBanner = isMobile ( ) || downloadAppBannerHeight + desktopUploadViewHeight + styles . uploadFileView ( isSmallScreenWidth ) . paddingVertical * 2 > containerHeight ;
978979
979980 const desktopUploadView = ( ) => (
980981 < View
@@ -1073,7 +1074,6 @@ function IOURequestStepScan({
10731074 receiptImageTopPosition = { receiptImageTopPosition }
10741075 />
10751076 ) }
1076- { /* We use isMobile() here to explicitly hide DownloadAppBanner component on both mobile web and native apps */ }
10771077 { ! shouldHideDownloadAppBanner && < DownloadAppBanner onLayout = { ( e ) => setDownloadAppBannerHeight ( e . nativeEvent . layout . height ) } /> }
10781078 { ErrorModal }
10791079 { startLocationPermissionFlow && ! ! receiptFiles . length && (
You can’t perform that action at this time.
0 commit comments