@@ -10,12 +10,12 @@ import useTheme from '@hooks/useTheme';
10
10
import useThemeStyles from '@hooks/useThemeStyles' ;
11
11
import ControlSelection from '@libs/ControlSelection' ;
12
12
import convertToLTR from '@libs/convertToLTR' ;
13
- import * as DeviceCapabilities from '@libs/DeviceCapabilities' ;
13
+ import { canUseTouchScreen } from '@libs/DeviceCapabilities' ;
14
14
import getButtonState from '@libs/getButtonState' ;
15
15
import Parser from '@libs/Parser' ;
16
16
import type { AvatarSource } from '@libs/UserUtils' ;
17
17
import variables from '@styles/variables' ;
18
- import * as Session from '@userActions/Session' ;
18
+ import { checkIfActionIsAllowed } from '@userActions/Session' ;
19
19
import CONST from '@src/CONST' ;
20
20
import type { Icon as IconType } from '@src/types/onyx/OnyxCommon' ;
21
21
import type { TooltipAnchorAlignment } from '@src/types/utils/AnchorAlignment' ;
@@ -611,8 +611,8 @@ function MenuItem(
611
611
< Hoverable >
612
612
{ ( isHovered ) => (
613
613
< PressableWithSecondaryInteraction
614
- onPress = { shouldCheckActionAllowedOnPress ? Session . checkIfActionIsAllowed ( onPressAction , isAnonymousAction ) : onPressAction }
615
- onPressIn = { ( ) => shouldBlockSelection && shouldUseNarrowLayout && DeviceCapabilities . canUseTouchScreen ( ) && ControlSelection . block ( ) }
614
+ onPress = { shouldCheckActionAllowedOnPress ? checkIfActionIsAllowed ( onPressAction , isAnonymousAction ) : onPressAction }
615
+ onPressIn = { ( ) => shouldBlockSelection && shouldUseNarrowLayout && canUseTouchScreen ( ) && ControlSelection . block ( ) }
616
616
onPressOut = { ControlSelection . unblock }
617
617
onSecondaryInteraction = { onSecondaryInteraction }
618
618
wrapperStyle = { outerWrapperStyle }
0 commit comments