bugfix: minor change of zoomlevel type
This commit is contained in:
@@ -2,18 +2,9 @@ import OverviewVideoContainer from "../components/FrontCameraSettings/OverviewVi
|
|||||||
import CameraSettings from "../components/CameraSettings/CameraSettings";
|
import CameraSettings from "../components/CameraSettings/CameraSettings";
|
||||||
import { Toaster } from "sonner";
|
import { Toaster } from "sonner";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import type { ZoomLevel } from "../types/types";
|
|
||||||
|
|
||||||
const RearCamera = () => {
|
const RearCamera = () => {
|
||||||
const [zoomLevel, setZoomLevel] = useState<ZoomLevel>({
|
const [zoomLevel, setZoomLevel] = useState<number>(1);
|
||||||
left: 0,
|
|
||||||
top: 0,
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
px: 0,
|
|
||||||
py: 0,
|
|
||||||
level: 1,
|
|
||||||
});
|
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto flex flex-col lg:flex-row gap-2 px-1 sm:px-2 lg:px-0 w-full min-h-screen">
|
<div className="mx-auto flex flex-col lg:flex-row gap-2 px-1 sm:px-2 lg:px-0 w-full min-h-screen">
|
||||||
<CameraSettings
|
<CameraSettings
|
||||||
|
|||||||
Reference in New Issue
Block a user