diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 537cb27..a37fc43 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -14,7 +14,7 @@ const Navbar = () => { async function handleLogout() { window.open(`${authUrl}/auth/logout`, "_self"); - }; + } useEffect(() => { // Set active link based on current path @@ -128,18 +128,22 @@ const Navbar = () => { */} -
  • - - 🎯 - ASSIGNMENT - - -
  • + + {user && user.role === "instructor" && ( +
  • + + 🎯 + ASSIGNMENT + + +
  • + )} + {user && user.role === "student" && (
  • {
  • + )}
  • {user ? (