Skip to content

Commit 62a846d

Browse files
committed
Override enabled
1 parent 2932e98 commit 62a846d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/components/camera/CameraImage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ActivityIndicator from "../indicators/activity-indicator";
55
import { useResizeObserver } from "@/hooks/resize-observer";
66
import { isDesktop } from "react-device-detect";
77
import { cn } from "@/lib/utils";
8-
import { useEnabledState } from "@/api/ws";
8+
// import { useEnabledState } from "@/api/ws";
99

1010
type CameraImageProps = {
1111
className?: string;
@@ -27,8 +27,8 @@ export default function CameraImage({
2727
const imgRef = useRef<HTMLImageElement | null>(null);
2828

2929
const { name } = config ? config.cameras[camera] : "";
30-
const { payload: enabledState } = useEnabledState(camera);
31-
const enabled = enabledState === "ON" || enabledState === undefined;
30+
// const { payload: enabledState } = useEnabledState(camera);
31+
const enabled = true;
3232

3333
const [{ width: containerWidth, height: containerHeight }] =
3434
useResizeObserver(containerRef);

0 commit comments

Comments
 (0)