This commit is contained in:
parent
269dd3c7a5
commit
7279fae92f
@ -74,10 +74,11 @@ const Navbar = () => {
|
||||
|
||||
{isTeamsOpen && (
|
||||
<div className="absolute left-0 mt-2 w-40 bg-white rounded-md shadow-lg ring-1 ring-black ring-opacity-5 z-10">
|
||||
<Link to="/teams/damen1" className="block px-4 py-2 text-gray-700 hover:bg-frog-50 hover:text-frog-600">Damen 1</Link>
|
||||
<Link to="/teams/damen2" className="block px-4 py-2 text-gray-700 hover:bg-frog-50 hover:text-frog-600">Damen 2</Link>
|
||||
<Link to="/teams/herren1" className="block px-4 py-2 text-gray-700 hover:bg-frog-50 hover:text-frog-600">Herren 1</Link>
|
||||
<Link to="/teams/herren2" className="block px-4 py-2 text-gray-700 hover:bg-frog-50 hover:text-frog-600">Herren 2</Link>
|
||||
<Link to="/teams/4" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Damen 1</Link>
|
||||
<Link to="/teams/5" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Damen 2</Link>
|
||||
<Link to="/teams/1" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Herren 1</Link>
|
||||
<Link to="/teams/2" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Herren 2</Link>
|
||||
<Link to="/teams/9" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Mixed</Link>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@ -110,7 +111,7 @@ const Navbar = () => {
|
||||
if (isAuthenticated) {
|
||||
navigate("/admin");
|
||||
} else {
|
||||
navigate("/admin/login");
|
||||
navigate("/admin");
|
||||
}
|
||||
}}
|
||||
className="flex items-center space-x-2 cursor-pointer"
|
||||
@ -130,7 +131,7 @@ const Navbar = () => {
|
||||
className="w-full text-left text-gray-700 hover:bg-frog-50 hover:text-frog-600"
|
||||
onClick={() => {
|
||||
logout();
|
||||
navigate("/admin/login");
|
||||
navigate("/admin");
|
||||
}}
|
||||
>
|
||||
Logout
|
||||
@ -167,10 +168,11 @@ const Navbar = () => {
|
||||
<div>
|
||||
<div className="block px-3 py-2 rounded-md text-base font-medium text-gray-700">Teams</div>
|
||||
<div className="pl-6">
|
||||
<Link to="/teams/damen1" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Damen 1</Link>
|
||||
<Link to="/teams/damen2" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Damen 2</Link>
|
||||
<Link to="/teams/herren1" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Herren 1</Link>
|
||||
<Link to="/teams/herren2" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Herren 2</Link>
|
||||
<Link to="/teams/4" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Damen 1</Link>
|
||||
<Link to="/teams/5" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Damen 2</Link>
|
||||
<Link to="/teams/1" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Herren 1</Link>
|
||||
<Link to="/teams/2" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Herren 2</Link>
|
||||
<Link to="/teams/9" className="block px-3 py-1 text-gray-700 hover:text-frog-600">Mixed</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user