diff --git a/apps/web/src/components/callPopout.tsx b/apps/web/src/components/callPopout.tsx index 79d5fb7..bbe0f91 100644 --- a/apps/web/src/components/callPopout.tsx +++ b/apps/web/src/components/callPopout.tsx @@ -1,15 +1,8 @@ -import { lazy, Suspense } from "react"; - import { useCall } from "@tensamin/call/state"; - -const Popout = lazy(() => import("@tensamin/call/popout")); +import Popout from "@tensamin/call/popout"; export default function CallPopout() { const active = useCall((state) => state.state !== "closed"); - return active ? ( - - - - ) : null; + return active ? : null; } diff --git a/apps/web/src/components/callSidebarBox.tsx b/apps/web/src/components/callSidebarBox.tsx index 5480af2..89d7905 100644 --- a/apps/web/src/components/callSidebarBox.tsx +++ b/apps/web/src/components/callSidebarBox.tsx @@ -1,15 +1,8 @@ -import { lazy, Suspense } from "react"; - import { useCall } from "@tensamin/call/state"; - -const SidebarBox = lazy(() => import("@tensamin/call/sidebarBox")); +import SidebarBox from "@tensamin/call/sidebarBox"; export default function CallSidebarBox() { const active = useCall((state) => state.state !== "closed"); - return active ? ( - - - - ) : null; + return active ? : null; } diff --git a/apps/web/src/components/navbar.tsx b/apps/web/src/components/navbar.tsx index 19c367f..e980a0d 100644 --- a/apps/web/src/components/navbar.tsx +++ b/apps/web/src/components/navbar.tsx @@ -28,6 +28,7 @@ import { useState } from "react"; import { SidebarTrigger, useSidebar } from "@methanium/ui"; import { WindowControls as Controls } from "@methanium/ui"; import { useSession } from "@tensamin/identity/session"; +import { joinCall } from "@tensamin/call/store"; import Profile from "./modals/profile"; export default function Navbar({ forMobile }: { forMobile: boolean }) { @@ -139,11 +140,7 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) { {currentCalls.length === 0 ? (