From 6f8dcaaf4ad1d89f4f0a18db91964bad3e2ed724 Mon Sep 17 00:00:00 2001 From: Roba Boru Date: Wed, 15 Jul 2026 14:58:25 +0300 Subject: [PATCH] Comment out altenative schedules --- .../portal/src/app/booking/results/page.tsx | 122 ++++++++++-------- 1 file changed, 70 insertions(+), 52 deletions(-) diff --git a/apps/edr-passenger-web/portal/src/app/booking/results/page.tsx b/apps/edr-passenger-web/portal/src/app/booking/results/page.tsx index 45331e761..4194324d4 100644 --- a/apps/edr-passenger-web/portal/src/app/booking/results/page.tsx +++ b/apps/edr-passenger-web/portal/src/app/booking/results/page.tsx @@ -1065,23 +1065,36 @@ export default function ResultsPage() { } if (isOneWayNoOutbound) { - const hasAlternatives = alternativeOutbound.length > 0; - return (
{renderClassModal()}
-
-
- - No trains available on {searchData.date ? format(new Date(`${searchData.date}T00:00:00`), "EEEE, MMMM d, yyyy") : "your selected date"}. +
+
+
-
+ {/* Alternative Travel Options — commented out for the time being; + only the "No trains available" banner above is shown. {hasAlternatives && (
@@ -1100,6 +1113,7 @@ export default function ResultsPage() {
)} + */}
@@ -1233,30 +1247,32 @@ export default function ResultsPage() { renderScheduleCard(schedule, true), )}
- {outboundSchedules.length === 0 && - alternativeOutbound.length > 0 && ( -
-
-
- - No trains on {searchData.date ? format(new Date(`${searchData.date}T00:00:00`), "EEEE, MMMM d") : "your selected date"}. -
- -
-
-

- Alternative Outbound Options -

-
-
- {alternativeOutbound.map((schedule: Schedule) => - renderScheduleCard(schedule, true, true), - )} + {outboundSchedules.length === 0 && ( +
+
+
+ + No trains on {searchData.date ? format(new Date(`${searchData.date}T00:00:00`), "EEEE, MMMM d") : "your selected date"}.
+
- )} + {/* Alternative Outbound Options — commented out for the time being; + only the "No trains" banner above is shown. +
+

+ Alternative Outbound Options +

+
+
+ {alternativeOutbound.map((schedule: Schedule) => + renderScheduleCard(schedule, true, true), + )} +
+ */} +
+ )}
) : (
@@ -1317,30 +1333,32 @@ export default function ResultsPage() { renderScheduleCard(schedule, false), )}
- {inboundSchedules.length === 0 && - alternativeInbound.length > 0 && ( -
-
-
- - No trains on {searchData.returnDate ? format(new Date(`${searchData.returnDate}T00:00:00`), "EEEE, MMMM d") : "your selected return date"}. -
- -
-
-

- Alternative Return Options -

-
-
- {alternativeInbound.map((schedule: Schedule) => - renderScheduleCard(schedule, false, true), - )} + {inboundSchedules.length === 0 && ( +
+
+
+ + No trains on {searchData.returnDate ? format(new Date(`${searchData.returnDate}T00:00:00`), "EEEE, MMMM d") : "your selected return date"}.
+
- )} + {/* Alternative Return Options — commented out for the time being; + only the "No trains" banner above is shown. +
+

+ Alternative Return Options +

+
+
+ {alternativeInbound.map((schedule: Schedule) => + renderScheduleCard(schedule, false, true), + )} +
+ */} +
+ )}
) ) : (