diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/frontend/app/components/layout/NavBar.tsx | 20 | ||||
| -rw-r--r-- | src/frontend/app/i18n/locales/en-GB.json | 5 | ||||
| -rw-r--r-- | src/frontend/app/i18n/locales/es-ES.json | 5 | ||||
| -rw-r--r-- | src/frontend/app/i18n/locales/gl-ES.json | 5 |
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." |
