aboutsummaryrefslogtreecommitdiff
path: root/src
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
parentfbb4530d7ac980f9b9b54757813c023089f600f8 (diff)
Update navigation bar
Diffstat (limited to 'src')
-rw-r--r--src/frontend/app/components/layout/NavBar.tsx20
-rw-r--r--src/frontend/app/i18n/locales/en-GB.json5
-rw-r--r--src/frontend/app/i18n/locales/es-ES.json5
-rw-r--r--src/frontend/app/i18n/locales/gl-ES.json5
4 files changed, 16 insertions, 19 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 (
diff --git a/src/frontend/app/i18n/locales/en-GB.json b/src/frontend/app/i18n/locales/en-GB.json
index 6eb882b..1ac073c 100644
--- a/src/frontend/app/i18n/locales/en-GB.json
+++ b/src/frontend/app/i18n/locales/en-GB.json
@@ -97,10 +97,9 @@
"404": "The requested page could not be found."
},
"navbar": {
- "stops": "Stops",
+ "home": "Home",
"map": "Map",
- "lines": "Lines",
- "settings": "Settings"
+ "lines": "Lines"
},
"lines": {
"description": "Below is a list of Vigo urban bus lines with their respective routes and links to official timetables."
diff --git a/src/frontend/app/i18n/locales/es-ES.json b/src/frontend/app/i18n/locales/es-ES.json
index 5e17101..d6facae 100644
--- a/src/frontend/app/i18n/locales/es-ES.json
+++ b/src/frontend/app/i18n/locales/es-ES.json
@@ -97,10 +97,9 @@
"404": "La página solicitada no se pudo encontrar."
},
"navbar": {
- "stops": "Paradas",
+ "home": "Inicio",
"map": "Mapa",
- "lines": "Líneas",
- "settings": "Ajustes"
+ "lines": "Líneas"
},
"lines": {
"description": "A continuación se muestra una lista de las líneas de autobús urbano de Vigo con sus respectivas rutas y enlaces a los horarios oficiales."
diff --git a/src/frontend/app/i18n/locales/gl-ES.json b/src/frontend/app/i18n/locales/gl-ES.json
index ec37181..db7b6ec 100644
--- a/src/frontend/app/i18n/locales/gl-ES.json
+++ b/src/frontend/app/i18n/locales/gl-ES.json
@@ -97,10 +97,9 @@
"404": "Non se puido atopar a páxina solicitada."
},
"navbar": {
- "stops": "Paradas",
+ "home": "Inicio",
"map": "Mapa",
- "lines": "Liñas",
- "settings": "Axustes"
+ "lines": "Liñas"
},
"lines": {
"description": "A continuación se mostra unha lista das liñas de autobús urbano de Vigo coas súas respectivas rutas e ligazóns ós horarios oficiais."