From 4420def7411a053e930b44117e2bf63625d824dc Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Fri, 7 Nov 2025 12:43:18 +0100
Subject: Make "stops" page be the home (renaming only)

---
 src/frontend/app/components/NavBar.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src/frontend/app/components/NavBar.tsx')

diff --git a/src/frontend/app/components/NavBar.tsx b/src/frontend/app/components/NavBar.tsx
index 6a06e63..bb73d58 100644
--- a/src/frontend/app/components/NavBar.tsx
+++ b/src/frontend/app/components/NavBar.tsx
@@ -27,7 +27,8 @@ export default function NavBar() {
     {
       name: t("navbar.stops", "Paradas"),
       icon: MapPin,
-      path: "/stops",
+      path: "/",
+      exact: true
     },
     {
       name: t("navbar.map", "Mapa"),
@@ -65,7 +66,9 @@ export default function NavBar() {
     <nav className="navigation-bar">
       {navItems.map((item) => {
         const Icon = item.icon;
-        const isActive = location.pathname.startsWith(item.path);
+        const isActive = item.exact ?
+          location.pathname === item.path :
+          location.pathname.startsWith(item.path);
 
         return (
           <Link
-- 
cgit v1.3

