@@ -11,6 +11,7 @@ import styles from '../../../../styles/styles';
11
11
import CONST from '../../../../CONST' ;
12
12
import PressableWithoutFeedback from '../../../../components/Pressable/PressableWithoutFeedback' ;
13
13
import useLocalize from '../../../../hooks/useLocalize' ;
14
+ import NoDropZone from '../../../../components/DragAndDrop/NoDropZone' ;
14
15
15
16
const propTypes = {
16
17
/* State from useNavigationBuilder */
@@ -53,25 +54,26 @@ function ThreePaneView(props) {
53
54
}
54
55
if ( route . name === NAVIGATORS . RIGHT_MODAL_NAVIGATOR ) {
55
56
return (
56
- < View
57
- key = { route . key }
58
- style = { [
59
- styles . flexRow ,
60
- styles . pAbsolute ,
61
- styles . w100 ,
62
- styles . h100 ,
63
- StyleUtils . getBackgroundColorWithOpacityStyle ( themeColors . shadow , CONST . RIGHT_MODAL_BACKGROUND_OVERLAY_OPACITY ) ,
64
- StyleUtils . displayIfTrue ( props . state . index === i ) ,
65
- ] }
66
- >
67
- < PressableWithoutFeedback
68
- style = { [ styles . flex1 ] }
69
- onPress = { ( ) => props . navigation . goBack ( ) }
70
- accessibilityLabel = { translate ( 'common.close' ) }
71
- accessibilityRole = { CONST . ACCESSIBILITY_ROLE . BUTTON }
72
- />
73
- < View style = { styles . rightPanelContainer } > { props . descriptors [ route . key ] . render ( ) } </ View >
74
- </ View >
57
+ < NoDropZone key = { route . key } >
58
+ < View
59
+ style = { [
60
+ styles . flexRow ,
61
+ styles . pAbsolute ,
62
+ styles . w100 ,
63
+ styles . h100 ,
64
+ StyleUtils . getBackgroundColorWithOpacityStyle ( themeColors . shadow , CONST . RIGHT_MODAL_BACKGROUND_OVERLAY_OPACITY ) ,
65
+ StyleUtils . displayIfTrue ( props . state . index === i ) ,
66
+ ] }
67
+ >
68
+ < PressableWithoutFeedback
69
+ style = { [ styles . flex1 ] }
70
+ onPress = { ( ) => props . navigation . goBack ( ) }
71
+ accessibilityLabel = { translate ( 'common.close' ) }
72
+ accessibilityRole = { CONST . ACCESSIBILITY_ROLE . BUTTON }
73
+ />
74
+ < View style = { styles . rightPanelContainer } > { props . descriptors [ route . key ] . render ( ) } </ View >
75
+ </ View >
76
+ </ NoDropZone >
75
77
) ;
76
78
}
77
79
return (
0 commit comments