Scheduling infrastructure for absolutely everyone.
fix: hide Check for recording (#12184)
Udit Takkar01fb3dd03b16
diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsxindex 32bb2ca515e..fe33b6e9dff 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 && (<ViewRecordingsDialogbooking={booking}isOpenDialog={viewRecordingsDialogIsOpen}@@ -468,9 +466,7 @@ function BookingListItem(booking: BookingItemProps) {</>) : null}{isPast && isPending && !isConfirmed ? <TableActions actions={bookedActions} /> : null}- {(showRecordingsButtons || checkForRecordingsButton) && (- <TableActions actions={showRecordingActions} />- )}+ {showRecordingsButtons && <TableActions actions={showRecordingActions} />}{isCancelled && booking.rescheduled && (<div className="hidden h-full items-center md:flex"><RequestSentMessage />