fix: pending payment in mobile (#14011)

* fix: pending payment in mobile

* fix: pending paymeny badge

---------

Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
This commit is contained in:
Udit TakkarandJoe Au-Yeung authored and GitHub committed 2024-03-12 14:36:25 +00:00
1 parent 2f6d109a70
commit ae2446f42f
1 file changed
+5 -3
@@ -297,6 +297,8 @@ function BookingListItem(booking: BookingItemProps) {
},
];
const showPendingPayment = paymentAppData.enabled && booking.payment.length && !booking.paid;
return (
<>
<RescheduleDialog
@@ -463,7 +465,7 @@ function BookingListItem(booking: BookingItemProps) {
{booking.eventType.team.name}
</Badge>
)}
{!!booking?.eventType?.price && !booking.paid && (
{showPendingPayment && (
<Badge className="ltr:mr-2 rtl:ml-2 sm:hidden" variant="orange">
{t("pending_payment")}
</Badge>
@@ -490,8 +492,8 @@ function BookingListItem(booking: BookingItemProps) {
{title}
<span> </span>
{paymentAppData.enabled && !booking.paid && booking.payment.length && (
<Badge className="me-2 ms-2 hidden sm:inline-flex" variant="orange">
{showPendingPayment && (
<Badge className="hidden sm:inline-flex" variant="orange">
{t("pending_payment")}
</Badge>
)}