diff --git a/apps/edr-passenger-web/portal/src/app/booking/detail/page.tsx b/apps/edr-passenger-web/portal/src/app/booking/detail/page.tsx index c0c9f56bb..a54ce795b 100644 --- a/apps/edr-passenger-web/portal/src/app/booking/detail/page.tsx +++ b/apps/edr-passenger-web/portal/src/app/booking/detail/page.tsx @@ -412,6 +412,103 @@ function BookingDetailContent() { return displayTotal / etbTotal; })(); + // Flight-style origin → train → destination timeline for a single leg's schedule. + // Shared by both the pending-payment "Trip Summary" card and the confirmed booking's + // "Journey Details" card so a round trip's outbound and return legs render identically — + // each of those cards calls this once per leg instead of hardcoding booking.schedule only. + const renderJourneyTimeline = (schedule: any) => ( +