mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 09:15:22 +03:00
chore: revert fix formatting in camera.jsx
This commit is contained in:
parent
148dbbbf5a
commit
4dab9a39dc
@ -21,7 +21,7 @@ export default function Camera({ camera }) {
|
|||||||
const [viewMode, setViewMode] = useState('live');
|
const [viewMode, setViewMode] = useState('live');
|
||||||
|
|
||||||
const cameraConfig = config?.cameras[camera];
|
const cameraConfig = config?.cameras[camera];
|
||||||
const liveWidth = Math.round(cameraConfig.live.height * (cameraConfig.detect.width / cameraConfig.detect.height));
|
const liveWidth = Math.round(cameraConfig.live.height * (cameraConfig.detect.width / cameraConfig.detect.height))
|
||||||
const [options, setOptions] = usePersistence(`${camera}-feed`, emptyObject);
|
const [options, setOptions] = usePersistence(`${camera}-feed`, emptyObject);
|
||||||
|
|
||||||
const handleSetOption = useCallback(
|
const handleSetOption = useCallback(
|
||||||
@ -92,14 +92,15 @@ export default function Camera({ camera }) {
|
|||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
} else if (viewMode === 'debug') {
|
}
|
||||||
|
else if (viewMode === 'debug') {
|
||||||
player = (
|
player = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div>
|
<div>
|
||||||
<AutoUpdatingCameraImage camera={camera} searchParams={searchParams} />
|
<AutoUpdatingCameraImage camera={camera} searchParams={searchParams} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Button onClick={handleToggleSettings} type='text'>
|
<Button onClick={handleToggleSettings} type="text">
|
||||||
<span className="w-5 h-5">
|
<span className="w-5 h-5">
|
||||||
<SettingsIcon />
|
<SettingsIcon />
|
||||||
</span>{' '}
|
</span>{' '}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user