Informational updates

This commit is contained in:
Stephanos A
2026-07-22 16:18:58 +03:00
parent c6f6616218
commit e5be205bd8
5 changed files with 48 additions and 21 deletions

View File

@@ -128,6 +128,7 @@ function BookingDetailContent() {
) {
apiClient.post(`/tickets/generate/${booking.id}`, {}).then(() => refetch()).catch(() => {});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [booking?.id, booking?.status, booking?.tickets?.length]);
const { data: paymentMethods } = useQuery<any[]>({
@@ -151,6 +152,7 @@ function BookingDetailContent() {
if (intentStatus?.status === "SUCCEEDED") {
refetch();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [intentStatus?.status]);
const selectedPaymentMethod =

View File

@@ -974,9 +974,6 @@ const adultPassengerCount = searchCriteria?.adultCount ?? passengers.filter(p =>
{(p as any).outboundCoachNumber && <span className="text-gray-500 dark:text-gray-400">{(p as any).outboundCoachNumber} </span>}
{(p as any).outboundSeatId ? (seatDetails[`outbound-${(p as any).outboundSeatId}`] || 'Loading...') : (isPkgFreeChild(i) || (!packageId && isChild(p) && isFirstChild(passengers, i)) ? '—' : 'Auto-assign')}
</p>
{(p as any).outboundSeatId && (
<p className="text-[10px] text-gray-400 dark:text-gray-500 mt-0.5">{formatSeatClass(outboundSchedule)}</p>
)}
</div>
<div className="bg-gray-50 dark:bg-gray-800 rounded-lg px-3 py-2 text-right">
<p className="text-xs text-gray-500 dark:text-gray-400">Return</p>
@@ -984,9 +981,6 @@ const adultPassengerCount = searchCriteria?.adultCount ?? passengers.filter(p =>
{(p as any).inboundCoachNumber && <span className="text-gray-500 dark:text-gray-400">{(p as any).inboundCoachNumber} </span>}
{(p as any).inboundSeatId ? (seatDetails[`inbound-${(p as any).inboundSeatId}`] || 'Loading...') : (isPkgFreeChild(i) || (!packageId && isChild(p) && isFirstChild(passengers, i)) ? '—' : 'Auto-assign')}
</p>
{(p as any).inboundSeatId && (
<p className="text-[10px] text-gray-400 dark:text-gray-500 mt-0.5">{formatSeatClass(inboundSchedule)}</p>
)}
</div>
</div>
) : (
@@ -996,9 +990,6 @@ const adultPassengerCount = searchCriteria?.adultCount ?? passengers.filter(p =>
{p.coachNumber && <span className="text-gray-500 dark:text-gray-400">{p.coachNumber} </span>}
{p.seatId ? (seatDetails[p.seatId] || 'Loading...') : (isPkgFreeChild(i) || (!packageId && isChild(p) && isFirstChild(passengers, i)) ? '—' : 'Auto-assign')}
</p>
{p.seatId && (
<p className="text-[10px] text-gray-400 dark:text-gray-500 mt-0.5">{formatSeatClass(selectedSchedule)}</p>
)}
</div>
)}
</div>

View File

@@ -783,7 +783,7 @@ export default function PackageDetailPage() {
<Users className="w-5 h-5 text-primary mx-auto mb-1" />
<p className="text-[10px] text-gray-400 uppercase tracking-wide">Available</p>
<p className={`text-xs font-bold mt-0.5 ${availableSeats <= 20 ? "text-orange-500" : "text-gray-800 dark:text-white"}`}>
{availableSeats} seats
{pkg.priceTiers.filter((t) => t.availableSeats > 0).length} classes
</p>
</div>
<div className="bg-white dark:bg-gray-900 rounded-xl p-4 border border-gray-100 dark:border-gray-800 text-center">