From 5353610d9a86ace647c95ef0133d85581ddd38b6 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 9 Feb 2023 15:43:28 +0000 Subject: [PATCH] Only handle refunds when there are payments, otherwise skip (#6974) --- .../components/booking/BookingListItem.tsx | 32 +++-- .../trpc/server/routers/viewer/bookings.tsx | 114 +++++++++--------- 2 files changed, 75 insertions(+), 71 deletions(-) diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index 686ff9d405..0e0f66db79 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -17,13 +17,12 @@ import { DialogClose, DialogContent, DialogFooter, - DialogHeader, MeetingTimeInTimezones, showToast, - TextArea, Tooltip, ActionType, TableActions, + TextAreaField, } from "@calcom/ui"; import { FiCheck, FiClock, FiMapPin, FiRefreshCcw, FiSend, FiSlash, FiX } from "@calcom/ui/components/icon"; @@ -245,24 +244,23 @@ function BookingListItem(booking: BookingItemProps) { )} {/* NOTE: Should refactor this dialog component as is being rendered multiple times */} - - - -

{t("rejection_reason_description")}

-

- {t("rejection_reason")} - (Optional) -

-