From b2ddc0ef449ccbe7f0d33e539ccdfc1baef04e2c Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 28 Dec 2025 18:21:17 +0100 Subject: Get favourite stops from OTP instead of pre-generated file --- src/frontend/app/components/StopGalleryItem.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/frontend/app/components/StopGalleryItem.tsx') diff --git a/src/frontend/app/components/StopGalleryItem.tsx b/src/frontend/app/components/StopGalleryItem.tsx index bf60697..de369d8 100644 --- a/src/frontend/app/components/StopGalleryItem.tsx +++ b/src/frontend/app/components/StopGalleryItem.tsx @@ -26,7 +26,7 @@ const StopGalleryItem: React.FC = ({ stop }) => { )} - ({stop.stopId}) + ({stop.stopCode || stop.stopId})
= ({ stop }) => { {StopDataProvider.getDisplayName(stop)}
- {stop.lines?.slice(0, 5).map((line) => ( - + {stop.lines?.slice(0, 5).map((lineObj) => ( + ))} {stop.lines && stop.lines.length > 5 && ( -- cgit v1.3