@@ -22,7 +22,6 @@ import useOnyx from '@hooks/useOnyx';
2222import usePermissions from '@hooks/usePermissions' ;
2323import useTheme from '@hooks/useTheme' ;
2424import useThemeStyles from '@hooks/useThemeStyles' ;
25- import useThreeDotsAnchorPosition from '@hooks/useThreeDotsAnchorPosition' ;
2625import { completeTestDriveTask } from '@libs/actions/Task' ;
2726import DateUtils from '@libs/DateUtils' ;
2827import { canUseTouchScreen } from '@libs/DeviceCapabilities' ;
@@ -149,7 +148,6 @@ function IOURequestStepConfirmation({
149148 const theme = useTheme ( ) ;
150149 const { translate} = useLocalize ( ) ;
151150 const { isBetaEnabled} = usePermissions ( ) ;
152- const threeDotsAnchorPosition = useThreeDotsAnchorPosition ( styles . threeDotsPopoverOffsetNoCloseButton ) ;
153151 const { isOffline} = useNetwork ( ) ;
154152 const [ startLocationPermissionFlow , setStartLocationPermissionFlow ] = useState ( false ) ;
155153 const [ selectedParticipantList , setSelectedParticipantList ] = useState < Participant [ ] > ( [ ] ) ;
@@ -368,10 +366,6 @@ function IOURequestStepConfirmation({
368366 backTo ,
369367 ] ) ;
370368
371- const navigateToAddReceipt = useCallback ( ( ) => {
372- Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_SCAN . getRoute ( action , iouType , initialTransactionID , reportID , Navigation . getActiveRouteWithoutParams ( ) ) ) ;
373- } , [ iouType , initialTransactionID , reportID , action ] ) ;
374-
375369 // When the component mounts, if there is a receipt, see if the image can be read from the disk. If not, redirect the user to the starting step of the flow.
376370 // This is because until the request is saved, the receipt file is only stored in the browsers memory as a blob:// and if the browser is refreshed, then
377371 // the image ceases to exist. The best way for the user to recover from this is to start over from the start of the request process.
@@ -1015,9 +1009,6 @@ function IOURequestStepConfirmation({
10151009 showPreviousTransaction ( ) ;
10161010 } ;
10171011
1018- const shouldShowThreeDotsButton =
1019- requestType === CONST . IOU . REQUEST_TYPE . MANUAL && ( iouType === CONST . IOU . TYPE . SUBMIT || iouType === CONST . IOU . TYPE . TRACK ) && ! isMovingTransactionFromTrackExpense ;
1020-
10211012 const shouldShowSmartScanFields =
10221013 ! ! transaction ?. receipt ?. isTestDriveReceipt || ( isMovingTransactionFromTrackExpense ? transaction ?. amount !== 0 : requestType !== CONST . IOU . REQUEST_TYPE . SCAN ) ;
10231014
@@ -1027,24 +1018,12 @@ function IOURequestStepConfirmation({
10271018 testID = { IOURequestStepConfirmation . displayName }
10281019 headerGapStyles = { isDraggingOver ? [ styles . dropWrapper ] : [ ] }
10291020 >
1030- < DragAndDropProvider
1031- setIsDraggingOver = { setIsDraggingOver }
1032- isDisabled = { ! shouldShowThreeDotsButton }
1033- >
1021+ < DragAndDropProvider setIsDraggingOver = { setIsDraggingOver } >
10341022 < View style = { styles . flex1 } >
10351023 < HeaderWithBackButton
10361024 title = { headerTitle }
10371025 subtitle = { hasMultipleTransactions ? `${ currentTransactionIndex + 1 } ${ translate ( 'common.of' ) } ${ transactions . length } ` : undefined }
10381026 onBackButtonPress = { navigateBack }
1039- shouldShowThreeDotsButton = { shouldShowThreeDotsButton }
1040- threeDotsAnchorPosition = { threeDotsAnchorPosition }
1041- threeDotsMenuItems = { [
1042- {
1043- icon : Expensicons . Receipt ,
1044- text : translate ( 'receipt.addReceipt' ) ,
1045- onSelected : navigateToAddReceipt ,
1046- } ,
1047- ] }
10481027 shouldDisplayHelpButton = { ! hasMultipleTransactions }
10491028 >
10501029 { hasMultipleTransactions ? (
0 commit comments