diff options
Diffstat (limited to 'src/frontend/app/components/NavBar.tsx')
| -rw-r--r-- | src/frontend/app/components/NavBar.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/app/components/NavBar.tsx b/src/frontend/app/components/NavBar.tsx index bb73d58..f9f1a03 100644 --- a/src/frontend/app/components/NavBar.tsx +++ b/src/frontend/app/components/NavBar.tsx @@ -28,7 +28,7 @@ export default function NavBar() { name: t("navbar.stops", "Paradas"), icon: MapPin, path: "/", - exact: true + exact: true, }, { name: t("navbar.map", "Mapa"), @@ -66,9 +66,9 @@ export default function NavBar() { <nav className="navigation-bar"> {navItems.map((item) => { const Icon = item.icon; - const isActive = item.exact ? - location.pathname === item.path : - location.pathname.startsWith(item.path); + const isActive = item.exact + ? location.pathname === item.path + : location.pathname.startsWith(item.path); return ( <Link |
