From 8952e979523700fcea0f7bb822b034f4cb9a99f5 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 30 Apr 2024 09:48:50 -0600 Subject: [PATCH] Always show live objects chip --- web/src/components/player/LivePlayer.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx index 49f6f7891..dcdd6423d 100644 --- a/web/src/components/player/LivePlayer.tsx +++ b/web/src/components/player/LivePlayer.tsx @@ -12,7 +12,6 @@ import { LivePlayerMode, VideoResolutionType } from "@/types/live"; import useCameraLiveMode from "@/hooks/use-camera-live-mode"; import { getIconForLabel } from "@/utils/iconUtil"; import Chip from "../indicators/Chip"; -import { isMobile } from "react-device-detect"; import { capitalizeFirstLetter } from "@/utils/stringUtil"; type LivePlayerProps = { @@ -44,8 +43,6 @@ export default function LivePlayer({ onClick, setFullResolution, }: LivePlayerProps) { - const [cameraHovered, setCameraHovered] = useState(false); - // camera activity const { activeMotion, activeTracking, objects } = @@ -159,8 +156,6 @@ export default function LivePlayer({ : "outline-0 outline-background" } transition-all duration-500 ${className}`} onClick={onClick} - onMouseEnter={() => setCameraHovered(true)} - onMouseLeave={() => setCameraHovered(false)} >
@@ -173,7 +168,7 @@ export default function LivePlayer({
{[ ...new Set([