From 01fb3dd03b162bc2a358ca411a372ba3cb529d7c Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Thu, 2 Nov 2023 15:04:25 +0530 Subject: [PATCH] fix: hide Check for recording (#12184) --- apps/web/components/booking/BookingListItem.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index 32bb2ca515..fe33b6e9df 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -261,13 +261,11 @@ function BookingListItem(booking: BookingItemProps) { const title = booking.title; const showRecordingsButtons = !!(booking.isRecorded && isPast && isConfirmed); - const checkForRecordingsButton = - !showRecordingsButtons && (booking.location === "integrations:daily" || booking?.location?.trim() === ""); const showRecordingActions: ActionType[] = [ { - id: checkForRecordingsButton ? "check_for_recordings" : "view_recordings", - label: checkForRecordingsButton ? t("check_for_recordings") : t("view_recordings"), + id: "view_recordings", + label: t("view_recordings"), onClick: () => { setViewRecordingsDialogIsOpen(true); }, @@ -298,7 +296,7 @@ function BookingListItem(booking: BookingItemProps) { paymentCurrency={booking.payment[0].currency} /> )} - {(showRecordingsButtons || checkForRecordingsButton) && ( + {showRecordingsButtons && ( ) : null} {isPast && isPending && !isConfirmed ? : null} - {(showRecordingsButtons || checkForRecordingsButton) && ( - - )} + {showRecordingsButtons && } {isCancelled && booking.rescheduled && (