From 77eed5611ee3642a86ff23e7d0e72c860d3fb080 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Wed, 10 May 2023 12:41:01 +0530 Subject: [PATCH] fix: use useTeamsPlan hook (#8789) * fix: use useTeamsPlan hook Signed-off-by: Udit Takkar * fix: z index bug on dialog Signed-off-by: Udit Takkar --------- Signed-off-by: Udit Takkar --- packages/features/ee/video/ViewRecordingsDialog.tsx | 10 +++++----- packages/ui/components/tooltip/Tooltip.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/features/ee/video/ViewRecordingsDialog.tsx b/packages/features/ee/video/ViewRecordingsDialog.tsx index 1fa86ccbb1..15f14556f1 100644 --- a/packages/features/ee/video/ViewRecordingsDialog.tsx +++ b/packages/features/ee/video/ViewRecordingsDialog.tsx @@ -2,7 +2,7 @@ import { useState, Suspense } from "react"; import dayjs from "@calcom/dayjs"; import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired"; -import useHasPaidPlan from "@calcom/lib/hooks/useHasPaidPlan"; +import { useHasTeamPlan } from "@calcom/lib/hooks/useHasPaidPlan"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { RecordingItemSchema } from "@calcom/prisma/zod-utils"; import type { RouterOutputs } from "@calcom/trpc/react"; @@ -98,7 +98,7 @@ const useRecordingDownload = () => { }; }; -const ViewRecordingsList = ({ roomName, hasPaidPlan }: { roomName: string; hasPaidPlan: boolean }) => { +const ViewRecordingsList = ({ roomName, hasTeamPlan }: { roomName: string; hasTeamPlan: boolean }) => { const { t } = useLocale(); const { setRecordingId, isFetching, recordingId } = useRecordingDownload(); @@ -129,7 +129,7 @@ const ViewRecordingsList = ({ roomName, hasPaidPlan }: { roomName: string; hasPa

{convertSecondsToMs(recording.duration)}

- {hasPaidPlan ? ( + {hasTeamPlan ? (