From 5c379005ae162bb1ac226ddffd4a5d04d52558f4 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 4 Feb 2025 12:50:45 +0800 Subject: [PATCH] lint --- src/components/VideoPlayer/BaseVideoPlayer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/VideoPlayer/BaseVideoPlayer.tsx b/src/components/VideoPlayer/BaseVideoPlayer.tsx index 7729c71db528..bad9a1a169c9 100644 --- a/src/components/VideoPlayer/BaseVideoPlayer.tsx +++ b/src/components/VideoPlayer/BaseVideoPlayer.tsx @@ -20,7 +20,7 @@ import VideoPopoverMenu from '@components/VideoPopoverMenu'; import useNetwork from '@hooks/useNetwork'; import useThemeStyles from '@hooks/useThemeStyles'; import addEncryptedAuthTokenToURL from '@libs/addEncryptedAuthTokenToURL'; -import * as DeviceCapabilities from '@libs/DeviceCapabilities'; +import {canUseTouchScreen as canUseTouchScreenLib} from '@libs/DeviceCapabilities'; import CONST from '@src/CONST'; import shouldReplayVideo from './shouldReplayVideo'; import type {VideoPlayerProps, VideoWithOnFullScreenUpdate} from './types'; @@ -86,7 +86,7 @@ function BaseVideoPlayer({ const videoPlayerElementParentRef = useRef(null); const videoPlayerElementRef = useRef(null); const sharedVideoPlayerParentRef = useRef(null); - const canUseTouchScreen = DeviceCapabilities.canUseTouchScreen(); + const canUseTouchScreen = canUseTouchScreenLib(); const isCurrentlyURLSet = currentlyPlayingURL === url; const isUploading = CONST.ATTACHMENT_LOCAL_URL_PREFIX.some((prefix) => url.startsWith(prefix)); const videoStateRef = useRef(null);