aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/layout/NavBar.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-07 20:55:05 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-07 20:55:05 +0100
commit8b810ceb425df619deb7153a1caa521c59050b40 (patch)
tree949da4f98b18c6dac49c463f48a37dc769a8a8d5 /src/frontend/app/components/layout/NavBar.tsx
parentfbb4530d7ac980f9b9b54757813c023089f600f8 (diff)
Update navigation bar
Diffstat (limited to 'src/frontend/app/components/layout/NavBar.tsx')
-rw-r--r--src/frontend/app/components/layout/NavBar.tsx20
1 files changed, 10 insertions, 10 deletions
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 (