From 276e73412abef28c222c52a84334d49f5e414f3c Mon Sep 17 00:00:00 2001
From: Copilot <198982749+Copilot@users.noreply.github.com>
Date: Mon, 17 Nov 2025 23:39:08 +0100
Subject: Use consolidated data API in map sheet with shared card component
 (#100)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com>
Co-authored-by: Ariel Costas Guerrero <ariel@costas.dev>
---
 src/frontend/app/routes/home.tsx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

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

diff --git a/src/frontend/app/routes/home.tsx b/src/frontend/app/routes/home.tsx
index 88c774b..2909999 100644
--- a/src/frontend/app/routes/home.tsx
+++ b/src/frontend/app/routes/home.tsx
@@ -29,7 +29,7 @@ export default function StopList() {
 
   const randomPlaceholder = useMemo(
     () => t("stoplist.search_placeholder"),
-    [t],
+    [t]
   );
 
   const fuse = useMemo(
@@ -38,7 +38,7 @@ export default function StopList() {
         threshold: 0.3,
         keys: ["name.original", "name.intersect", "stopId"],
       }),
-    [data],
+    [data]
   );
 
   const requestUserLocation = useCallback(() => {
@@ -59,7 +59,7 @@ export default function StopList() {
       {
         enableHighAccuracy: false,
         maximumAge: 5 * 60 * 1000,
-      },
+      }
     );
   }, []);
 
@@ -117,7 +117,7 @@ export default function StopList() {
       lat1: number,
       lon1: number,
       lat2: number,
-      lon2: number,
+      lon2: number
     ) => {
       const R = 6371000; // meters
       const dLat = toRadians(lat2 - lat1);
@@ -145,7 +145,7 @@ export default function StopList() {
           userLocation.latitude,
           userLocation.longitude,
           stop.latitude,
-          stop.longitude,
+          stop.longitude
         );
 
         return { stop, distance };
@@ -183,7 +183,7 @@ export default function StopList() {
 
       // Update favourite and recent stops with full data
       const favStops = stopsWithFavourites.filter((stop) =>
-        favouriteStopsIds.includes(stop.stopId),
+        favouriteStopsIds.includes(stop.stopId)
       );
       setFavouriteStops(favStops);
 
@@ -312,7 +312,7 @@ export default function StopList() {
           )}
           {!loading && data
             ? (userLocation ? sortedAllStops.slice(0, 6) : sortedAllStops).map(
-                (stop) => <StopItem key={stop.stopId} stop={stop} />,
+                (stop) => <StopItem key={stop.stopId} stop={stop} />
               )
             : null}
         </ul>
-- 
cgit v1.3

