From 8c18536777f95334e56ec6830ce7acdc43af4d65 Mon Sep 17 00:00:00 2001 From: nora chams Date: Sun, 12 May 2024 20:49:13 +0100 Subject: [PATCH] add naavbar item for location --- src/components/Navbar.tsx | 30 +++++++++++++++++++++++++++++- src/providers/routes.provider.tsx | 6 +++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 8395a4f6..e781b19b 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -1,5 +1,5 @@ import { RiDiscordLine } from "react-icons/ri"; -import { FiLogOut } from "react-icons/fi"; +import { FiLogOut, FiMapPin } from "react-icons/fi"; import { RxStar } from "react-icons/rx"; import { useState, useEffect } from "react"; import { useAuth } from "@/providers/hooks"; @@ -52,6 +52,11 @@ export const Navbar = () => { label: "Perks", Icon: RxStar, }, + [paths.location]: { + label: "Location", + Icon: FiMapPin, + externalLink: "https://www.google.com/maps/place/Your+Location/", + }, }; const location = useLocation(); @@ -188,6 +193,16 @@ export const Navbar = () => { + {currentUser && (