+
diff --git a/src/components/FrontCameraSettings/OverviewVideoContainer.tsx b/src/components/FrontCameraSettings/OverviewVideoContainer.tsx
index 90d8e61..7ed4c87 100644
--- a/src/components/FrontCameraSettings/OverviewVideoContainer.tsx
+++ b/src/components/FrontCameraSettings/OverviewVideoContainer.tsx
@@ -1,11 +1,10 @@
import clsx from "clsx";
import { SnapshotContainer } from "../CameraOverview/SnapshotContainer";
-import { faCamera } from "@fortawesome/free-regular-svg-icons";
import Card from "../UI/Card";
-import CardHeader from "../UI/CardHeader";
+import { useNavigate } from "react-router";
+import { useSwipeable } from "react-swipeable";
const OverviewVideoContainer = ({
- title,
side,
settingsPage,
}: {
@@ -13,14 +12,18 @@ const OverviewVideoContainer = ({
side: string;
settingsPage?: boolean;
}) => {
+ const navigate = useNavigate();
+ const handlers = useSwipeable({
+ onSwipedLeft: () => navigate("/"),
+ trackMouse: true,
+ });
return (
-
-
+
diff --git a/src/hooks/useCameraConfig.ts b/src/hooks/useCameraConfig.ts
index 284468f..8601bab 100644
--- a/src/hooks/useCameraConfig.ts
+++ b/src/hooks/useCameraConfig.ts
@@ -1,8 +1,8 @@
import { useMutation, useQuery } from "@tanstack/react-query";
import { toast } from "sonner";
-import { CAM_BASE } from "../utils/config";
+import { OUTSIDE_CAM_BASE } from "../utils/config";
-const base_url = `${CAM_BASE}/api`;
+const base_url = `${OUTSIDE_CAM_BASE}/api`;
console.log(base_url);
const fetchCameraSideConfig = async ({ queryKey }: { queryKey: string[] }) => {
diff --git a/src/pages/FrontCamera.tsx b/src/pages/FrontCamera.tsx
index c665d0a..dd97803 100644
--- a/src/pages/FrontCamera.tsx
+++ b/src/pages/FrontCamera.tsx
@@ -1,25 +1,15 @@
import CameraSettings from "../components/CameraSettings/CameraSettings";
import OverviewVideoContainer from "../components/FrontCameraSettings/OverviewVideoContainer";
import { Toaster } from "sonner";
-import { useNavigate } from "react-router";
-import { useSwipeable } from "react-swipeable";
const FrontCamera = () => {
- const navigate = useNavigate();
- const handlers = useSwipeable({
- onSwipedLeft: () => navigate("/"),
- trackMouse: true,
- });
-
return (
-