-
-
-
-
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"}.
-
-
router.push(buildSearchUrl())} className="text-sm font-semibold text-primary hover:underline flex-shrink-0">
- Change dates
-
-
-
-
- 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"}.
+
router.push(buildSearchUrl())} className="text-sm font-semibold text-primary hover:underline flex-shrink-0">
+ Change dates
+
- )}
+ {/* 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"}.
-
-
router.push(buildSearchUrl())} className="text-sm font-semibold text-primary hover:underline flex-shrink-0">
- Change dates
-
-
-
-
- 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"}.
+
router.push(buildSearchUrl())} className="text-sm font-semibold text-primary hover:underline flex-shrink-0">
+ Change dates
+
- )}
+ {/* 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),
+ )}
+
+ */}
+
+ )}
)
) : (