diff --git a/apps/web/lib/integrations/Daily/DailyVideoApiAdapter.ts b/apps/web/lib/integrations/Daily/DailyVideoApiAdapter.ts index c1d912c3..5d3d408b 100644 --- a/apps/web/lib/integrations/Daily/DailyVideoApiAdapter.ts +++ b/apps/web/lib/integrations/Daily/DailyVideoApiAdapter.ts @@ -96,7 +96,7 @@ const DailyVideoApiAdapter = (credential: Credential): VideoApiAdapter => { type: "daily_video", id: dailyEvent.name, password: "", - url: BASE_URL + "/call/" + event.uid, + url: BASE_URL + "/video/" + event.uid, }); } diff --git a/apps/web/pages/call/[uid].tsx b/apps/web/pages/video/[uid].tsx similarity index 85% rename from apps/web/pages/call/[uid].tsx rename to apps/web/pages/video/[uid].tsx index 12437430..2c7319eb 100644 --- a/apps/web/pages/call/[uid].tsx +++ b/apps/web/pages/video/[uid].tsx @@ -6,14 +6,14 @@ import Link from "next/link"; import { useRouter } from "next/router"; import React, { useEffect } from "react"; +import { useLocale } from "@lib/hooks/useLocale"; import prisma from "@lib/prisma"; import { inferSSRProps } from "@lib/types/inferSSRProps"; -import { HeadSeo } from "@components/seo/head-seo"; - export type JoinCallPageProps = inferSSRProps; export default function JoinCall(props: JoinCallPageProps) { + const { t } = useLocale(); const session = props.session; const router = useRouter(); @@ -34,15 +34,15 @@ export default function JoinCall(props: JoinCallPageProps) { useEffect(() => { if (emptyBooking) { - router.push("/call/no-meeting-found"); + router.push("/video/no-meeting-found"); } if (isUpcoming) { - router.push(`/call/meeting-not-started/${props.booking?.uid}`); + router.push(`/video/meeting-not-started/${props.booking?.uid}`); } if (isPast) { - router.push(`/call/meeting-ended/${props.booking?.uid}`); + router.push(`/video/meeting-ended/${props.booking?.uid}`); } }); @@ -108,12 +108,20 @@ export default function JoinCall(props: JoinCallPageProps) { return ( <> - - + Cal.com Video + + - + + + + + + + +
diff --git a/apps/web/pages/call/meeting-ended/[uid].tsx b/apps/web/pages/video/meeting-ended/[uid].tsx similarity index 98% rename from apps/web/pages/call/meeting-ended/[uid].tsx rename to apps/web/pages/video/meeting-ended/[uid].tsx index 688f2e7d..410d566d 100644 --- a/apps/web/pages/call/meeting-ended/[uid].tsx +++ b/apps/web/pages/video/meeting-ended/[uid].tsx @@ -23,7 +23,7 @@ export default function MeetingUnavailable(props: inferSSRProps { if (emptyBooking) { - router.push("/call/no-meeting-found"); + router.push("/video/no-meeting-found"); } }); if (!emptyBooking) { diff --git a/apps/web/pages/call/meeting-not-started/[uid].tsx b/apps/web/pages/video/meeting-not-started/[uid].tsx similarity index 99% rename from apps/web/pages/call/meeting-not-started/[uid].tsx rename to apps/web/pages/video/meeting-not-started/[uid].tsx index bb81a55d..36fae4ff 100644 --- a/apps/web/pages/call/meeting-not-started/[uid].tsx +++ b/apps/web/pages/video/meeting-not-started/[uid].tsx @@ -20,7 +20,7 @@ export default function MeetingNotStarted(props: inferSSRProps { if (emptyBooking) { - router.push("/call/no-meeting-found"); + router.push("/video/no-meeting-found"); } }); // eslint-disable-next-line @typescript-eslint/no-unused-vars diff --git a/apps/web/pages/call/no-meeting-found.tsx b/apps/web/pages/video/no-meeting-found.tsx similarity index 100% rename from apps/web/pages/call/no-meeting-found.tsx rename to apps/web/pages/video/no-meeting-found.tsx