Skip to content

Commit d9d6b2a

Browse files
committed
lint fix
1 parent b0cb26d commit d9d6b2a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/MenuItem.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import useTheme from '@hooks/useTheme';
1010
import useThemeStyles from '@hooks/useThemeStyles';
1111
import ControlSelection from '@libs/ControlSelection';
1212
import convertToLTR from '@libs/convertToLTR';
13-
import * as DeviceCapabilities from '@libs/DeviceCapabilities';
13+
import {canUseTouchScreen} from '@libs/DeviceCapabilities';
1414
import getButtonState from '@libs/getButtonState';
1515
import Parser from '@libs/Parser';
1616
import type {AvatarSource} from '@libs/UserUtils';
1717
import variables from '@styles/variables';
18-
import * as Session from '@userActions/Session';
18+
import {checkIfActionIsAllowed} from '@userActions/Session';
1919
import CONST from '@src/CONST';
2020
import type {Icon as IconType} from '@src/types/onyx/OnyxCommon';
2121
import type {TooltipAnchorAlignment} from '@src/types/utils/AnchorAlignment';
@@ -611,8 +611,8 @@ function MenuItem(
611611
<Hoverable>
612612
{(isHovered) => (
613613
<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()}
616616
onPressOut={ControlSelection.unblock}
617617
onSecondaryInteraction={onSecondaryInteraction}
618618
wrapperStyle={outerWrapperStyle}

src/components/ThreeDotsMenu/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Tooltip from '@components/Tooltip/PopoverAnchorTooltip';
1010
import useLocalize from '@hooks/useLocalize';
1111
import useTheme from '@hooks/useTheme';
1212
import useThemeStyles from '@hooks/useThemeStyles';
13-
import * as Browser from '@libs/Browser';
13+
import {isMobile} from '@libs/Browser';
1414
import variables from '@styles/variables';
1515
import CONST from '@src/CONST';
1616
import ONYXKEYS from '@src/ONYXKEYS';
@@ -98,7 +98,7 @@ function ThreeDotsMenu({
9898
disabled={disabled}
9999
onMouseDown={(e) => {
100100
/* Keep the focus state on mWeb like we did on the native apps. */
101-
if (!Browser.isMobile()) {
101+
if (!isMobile()) {
102102
return;
103103
}
104104
e.preventDefault();

0 commit comments

Comments
 (0)