aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes/stoplist.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-07 10:44:29 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-07 10:47:23 +0100
commit439d7da74a577ee586dae46761e1d1e69849067b (patch)
tree9ff7c1c740e491d34df6e5ece6766d8b04474217 /src/frontend/app/routes/stoplist.tsx
parentee77f38cdb324cbcf12518490df77fc9e6b89282 (diff)
Refactor StopGallery and StopGalleryItem components for improved layout and item display; update StopList to switch recent and favourite stops display order.
Diffstat (limited to 'src/frontend/app/routes/stoplist.tsx')
-rw-r--r--src/frontend/app/routes/stoplist.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/frontend/app/routes/stoplist.tsx b/src/frontend/app/routes/stoplist.tsx
index fe6d2f1..a98b2b4 100644
--- a/src/frontend/app/routes/stoplist.tsx
+++ b/src/frontend/app/routes/stoplist.tsx
@@ -279,16 +279,16 @@ export default function StopList() {
{!loading && (
<StopGallery
- stops={recentStops.slice(0, 5)}
- title={t("stoplist.recents")}
+ stops={favouriteStops.sort((a, b) => a.stopId - b.stopId)}
+ title={t("stoplist.favourites")}
+ emptyMessage={t("stoplist.no_favourites")}
/>
)}
{!loading && (
<StopGallery
- stops={favouriteStops.sort((a, b) => a.stopId - b.stopId)}
- title={t("stoplist.favourites")}
- emptyMessage={t("stoplist.no_favourites")}
+ stops={recentStops.slice(0, 5)}
+ title={t("stoplist.recents")}
/>
)}