Remove duplicate unconfirmed label (#4473)

pull/4474/head
Bailey Pumfleet 2022-09-14 18:41:46 +01:00 committed by GitHub
parent b1a1525471
commit 34d417515c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -306,11 +306,6 @@ function BookingListItem(booking: BookingItemProps) {
</td> </td>
<td className={"flex-1 px-4" + (isRejected ? " line-through" : "")} onClick={onClick}> <td className={"flex-1 px-4" + (isRejected ? " line-through" : "")} onClick={onClick}>
<div className="cursor-pointer py-4"> <div className="cursor-pointer py-4">
{isPending && (
<Badge variant="orange" className="mb-2 ltr:mr-2 rtl:ml-2">
{t("unconfirmed")}
</Badge>
)}
{!!booking?.eventType?.price && !booking.paid && ( {!!booking?.eventType?.price && !booking.paid && (
<Badge variant="orange" className="mb-2 ltr:mr-2 rtl:ml-2"> <Badge variant="orange" className="mb-2 ltr:mr-2 rtl:ml-2">
{t("pending_payment")} {t("pending_payment")}
@ -335,7 +330,11 @@ function BookingListItem(booking: BookingItemProps) {
{!!booking?.eventType?.price && !booking.paid && ( {!!booking?.eventType?.price && !booking.paid && (
<Tag className="hidden ltr:ml-2 rtl:mr-2 sm:inline-flex">Pending payment</Tag> <Tag className="hidden ltr:ml-2 rtl:mr-2 sm:inline-flex">Pending payment</Tag>
)} )}
{isPending && <Tag className="hidden ltr:ml-2 rtl:mr-2 sm:inline-flex">{t("unconfirmed")}</Tag>} {isPending && (
<Badge variant="orange" className="hidden ltr:ml-2 rtl:mr-2 sm:inline-flex">
{t("unconfirmed")}
</Badge>
)}
</div> </div>
{booking.description && ( {booking.description && (
<div <div