From 8b810ceb425df619deb7153a1caa521c59050b40 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 7 Dec 2025 20:55:05 +0100 Subject: Update navigation bar --- src/frontend/app/components/layout/NavBar.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/frontend/app/components/layout') diff --git a/src/frontend/app/components/layout/NavBar.tsx b/src/frontend/app/components/layout/NavBar.tsx index 1a32b1e..0ac6a71 100644 --- a/src/frontend/app/components/layout/NavBar.tsx +++ b/src/frontend/app/components/layout/NavBar.tsx @@ -1,4 +1,4 @@ -import { Map, MapPin, Route, Settings } from "lucide-react"; +import { Home, Map, Route } from "lucide-react"; import type { LngLatLike } from "maplibre-gl"; import { useTranslation } from "react-i18next"; import { Link, useLocation } from "react-router"; @@ -31,8 +31,8 @@ export default function NavBar({ orientation = "horizontal" }: NavBarProps) { const navItems = [ { - name: t("navbar.stops", "Paradas"), - icon: MapPin, + name: t("navbar.home", "Paradas"), + icon: Home, path: "/", exact: true, }, @@ -57,7 +57,12 @@ export default function NavBar({ orientation = "horizontal" }: NavBarProps) { updateMapState(coords, 16); } }, - () => { } + () => { }, + { + enableHighAccuracy: false, + maximumAge: 5 * 60 * 1000, + timeout: 10 * 1000, + } ); }, }, @@ -65,12 +70,7 @@ export default function NavBar({ orientation = "horizontal" }: NavBarProps) { name: t("navbar.lines", "LĂ­neas"), icon: Route, path: "/lines", - }, - { - name: t("navbar.settings", "Ajustes"), - icon: Settings, - path: "/settings", - }, + } ]; return ( -- cgit v1.3