Skip to content

Commit

Permalink
Adds rescheduling dropdown to past unconfirmed bookings (#3726)
Browse files Browse the repository at this point in the history
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 14, 2022
1 parent 2fbaec4 commit 09da911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/components/booking/BookingListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function BookingListItem(booking: BookingItemProps) {
};

const isUpcoming = new Date(booking.endTime) >= new Date();
const isPast = new Date(booking.endTime) < new Date();
const isCancelled = booking.status === BookingStatus.CANCELLED;
const isConfirmed = booking.status === BookingStatus.ACCEPTED;
const isRejected = booking.status === BookingStatus.REJECTED;
Expand Down Expand Up @@ -366,6 +367,7 @@ function BookingListItem(booking: BookingItemProps) {
{isRejected && <div className="text-sm text-gray-500">{t("rejected")}</div>}
</>
) : null}
{isPast && isPending && !isConfirmed ? <TableActions actions={bookedActions} /> : null}
{isCancelled && booking.rescheduled && (
<div className="hidden h-full items-center md:flex">
<RequestSentMessage />
Expand Down

0 comments on commit 09da911

Please sign in to comment.