From 550d7107f34cfb2408dc63c69182d2a7d3406936 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Wed, 28 Aug 2024 18:49:44 +0530 Subject: [PATCH] move camera feed specific hooks to CameraFeed dir --- src/Components/CameraFeed/CameraFeedOld.tsx | 4 ++-- src/{Common/hooks => Components/CameraFeed}/useFeedPTZ.ts | 0 src/{Common/hooks => Components/CameraFeed}/useMSEplayer.ts | 0 src/Components/CameraFeed/usePlayer.tsx | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{Common/hooks => Components/CameraFeed}/useFeedPTZ.ts (100%) rename src/{Common/hooks => Components/CameraFeed}/useMSEplayer.ts (100%) diff --git a/src/Components/CameraFeed/CameraFeedOld.tsx b/src/Components/CameraFeed/CameraFeedOld.tsx index 906f64c1dcf..198dd1fb65b 100644 --- a/src/Components/CameraFeed/CameraFeedOld.tsx +++ b/src/Components/CameraFeed/CameraFeedOld.tsx @@ -10,8 +10,8 @@ import { CameraPTZ, getCameraPTZ } from "../../Common/constants.js"; import { StreamStatus, useMSEMediaPlayer, -} from "../../Common/hooks/useMSEplayer.js"; -import { useFeedPTZ } from "../../Common/hooks/useFeedPTZ.js"; +} from "./useMSEplayer.js"; +import { useFeedPTZ } from "./useFeedPTZ.js"; import * as Notification from "../../Utils/Notifications.js"; import { AxiosError } from "axios"; import { BedSelect } from "../Common/BedSelect.js"; diff --git a/src/Common/hooks/useFeedPTZ.ts b/src/Components/CameraFeed/useFeedPTZ.ts similarity index 100% rename from src/Common/hooks/useFeedPTZ.ts rename to src/Components/CameraFeed/useFeedPTZ.ts diff --git a/src/Common/hooks/useMSEplayer.ts b/src/Components/CameraFeed/useMSEplayer.ts similarity index 100% rename from src/Common/hooks/useMSEplayer.ts rename to src/Components/CameraFeed/useMSEplayer.ts diff --git a/src/Components/CameraFeed/usePlayer.tsx b/src/Components/CameraFeed/usePlayer.tsx index c434d025bd6..7728866c72f 100644 --- a/src/Components/CameraFeed/usePlayer.tsx +++ b/src/Components/CameraFeed/usePlayer.tsx @@ -1,5 +1,5 @@ import { MutableRefObject, useCallback, useState } from "react"; -import { IOptions, useMSEMediaPlayer } from "../../Common/hooks/useMSEplayer"; +import { IOptions, useMSEMediaPlayer } from "./useMSEplayer"; export type StreamStatus = "playing" | "stop" | "loading" | "offline";