From 28fe813b76526fd7ac84bee4b24078d0fb0e6200 Mon Sep 17 00:00:00 2001 From: Daniel Abramov Date: Fri, 9 Jun 2023 18:31:29 +0200 Subject: [PATCH] Move LiveKit module into its own directory --- src/{room => livekit}/useLiveKit.ts | 2 +- src/room/GroupCallView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{room => livekit}/useLiveKit.ts (98%) diff --git a/src/room/useLiveKit.ts b/src/livekit/useLiveKit.ts similarity index 98% rename from src/room/useLiveKit.ts rename to src/livekit/useLiveKit.ts index 55289c9..90f9eba 100644 --- a/src/room/useLiveKit.ts +++ b/src/livekit/useLiveKit.ts @@ -6,7 +6,7 @@ import { } from "@livekit/components-react"; import { MediaDevicesState, MediaDevices } from "../settings/mediaDevices"; -import { LocalMediaInfo, MediaInfo } from "./VideoPreview"; +import { LocalMediaInfo, MediaInfo } from "../room/VideoPreview"; type LiveKitState = { // The state of the media devices (changing the devices will also change them in the room). diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index 20ebc28..9e8a389 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -31,7 +31,7 @@ import { CallEndedView } from "./CallEndedView"; import { useSentryGroupCallHandler } from "./useSentryGroupCallHandler"; import { PosthogAnalytics } from "../PosthogAnalytics"; import { useProfile } from "../profile/useProfile"; -import { useLiveKit } from "./useLiveKit"; +import { useLiveKit } from "../livekit/useLiveKit"; declare global { interface Window {