diff --git a/frontend/src/app/components/Navbar.tsx b/frontend/src/app/components/Navbar.tsx index 6c8ab19..ebd907e 100644 --- a/frontend/src/app/components/Navbar.tsx +++ b/frontend/src/app/components/Navbar.tsx @@ -6,11 +6,11 @@ import { useRouter } from "next/navigation"; import { User } from "firebase/auth"; const navBarLinks = [ - { name: "Home", link: "/" }, - { name: "About", link: "/about" }, - { name: "Carbon Dashboard", link: "/dashboard" }, - { name: "Transactions", link: "/transactions" }, - { name: "Map", link: "/map" }, + { name: "Home", link: "/", access_restricted: false }, + { name: "About", link: "/about", access_restricted: false }, + { name: "Carbon Dashboard", link: "/dashboard", access_restricted: true }, + { name: "Transactions", link: "/transactions", access_restricted: true }, + { name: "Map", link: "/map", access_restricted: true }, ]; const Navbar = () => { @@ -53,13 +53,15 @@ const Navbar = () => {