aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/layout/NavBar.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-03-13 17:12:12 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2026-03-13 17:12:12 +0100
commitece17875d4e454423f55f0623a456c0433ecd502 (patch)
tree732c0432cbf32757344c51b8c01bb18e83e9c0c0 /src/frontend/app/components/layout/NavBar.tsx
parent5c670f1b4a237b7a5197dfcf94de92095da95463 (diff)
feat: integrate geolocation functionality and enhance map interactions
- Added useGeolocation hook to manage user location and permissions. - Updated PlannerOverlay to utilize geolocation for setting origin. - Enhanced NavBar with a new planner route. - Introduced context menu for map interactions to set routes from current location. - Improved search functionality in the map with a dedicated search bar. - Updated localization files with new strings for routing and search features.
Diffstat (limited to 'src/frontend/app/components/layout/NavBar.tsx')
-rw-r--r--src/frontend/app/components/layout/NavBar.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/frontend/app/components/layout/NavBar.tsx b/src/frontend/app/components/layout/NavBar.tsx
index 5822ce7..e66c388 100644
--- a/src/frontend/app/components/layout/NavBar.tsx
+++ b/src/frontend/app/components/layout/NavBar.tsx
@@ -1,4 +1,4 @@
-import { Home, Map, Route } from "lucide-react";
+import { Home, Map, Navigation, Route } from "lucide-react";
import type { LngLatLike } from "maplibre-gl";
import { useTranslation } from "react-i18next";
import { Link, useLocation, useNavigate } from "react-router";
@@ -53,6 +53,11 @@ export default function NavBar({ orientation = "horizontal" }: NavBarProps) {
},
},
{
+ name: t("navbar.planner", "Planificador"),
+ icon: Navigation,
+ path: "/planner",
+ },
+ {
name: t("navbar.routes", "Rutas"),
icon: Route,
path: "/routes",