File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
web/src/components/camera Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import ActivityIndicator from "../indicators/activity-indicator";
55import { useResizeObserver } from "@/hooks/resize-observer" ;
66import { isDesktop } from "react-device-detect" ;
77import { cn } from "@/lib/utils" ;
8- import { useEnabledState } from "@/api/ws" ;
8+ // import { useEnabledState } from "@/api/ws";
99
1010type 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 ) ;
You can’t perform that action at this time.
0 commit comments