diff --git a/frontend/src/components/common/navbar.tsx b/frontend/src/components/common/navbar.tsx index 3af0046a..5581216c 100644 --- a/frontend/src/components/common/navbar.tsx +++ b/frontend/src/components/common/navbar.tsx @@ -23,7 +23,7 @@ enum TabsOptions { } export default function Navbar() { - const { user: currentUser, authIsReady } = useContext(AuthContext); + const { user: currentUser, authIsReady, isAdmin } = useContext(AuthContext); const [activeTab, setActiveTab] = useState(TabsOptions.NULL); const { login } = useLogin(); @@ -79,6 +79,7 @@ export default function Navbar() { )} + {isAdmin &&

Admin Page

} {!currentUser && (