From 439d7da74a577ee586dae46761e1d1e69849067b Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Fri, 7 Nov 2025 10:44:29 +0100
Subject: Refactor StopGallery and StopGalleryItem components for improved
 layout and item display; update StopList to switch recent and favourite stops
 display order.

---
 src/frontend/app/routes/stoplist.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/frontend/app/routes/stoplist.tsx')

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")}
         />
       )}
 
-- 
cgit v1.3

