diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx index 9e79659..3674c63 100644 --- a/src/components/NavBar.tsx +++ b/src/components/NavBar.tsx @@ -1,4 +1,3 @@ -import { useSession } from "next-auth/react"; import { signOut, useSession } from "next-auth/react"; import Link from "next/link"; import { useRouter } from "next/router"; @@ -11,7 +10,6 @@ const NavBar = () => { const toggleDropdown = () => { setIsDropdownOpen(!isDropdownOpen); }; - const { data: session } = useSession(); const closeDropdown = () => setIsDropdownOpen(false); @@ -84,7 +82,7 @@ const NavBar = () => { className="flex items-center justify-center font-bold text-white no-underline transition hover:bg-white/20 rounded-md whitespace-nowrap bg-white/10 flex-[1_0_0%] px-4" > SignIn - + } { session?.user.role === "MAINTAINER" && { Test cases } - } {session &&