1
0
Fork 0

refactor(Sidebar.tsx): use proper signout link

This commit is contained in:
Vojtěch Mareš 2023-06-26 23:09:56 +02:00
parent ebeabbcdbf
commit 019267584a
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -133,7 +133,7 @@ export function Sidebar() {
</li>
<li className="-mx-6 mt-auto">
<Link
href="#"
href="/api/auth/signout"
className="flex items-center gap-x-4 px-6 py-3 text-sm font-semibold leading-6 text-white hover:bg-gray-800"
>
<ArrowRightOnRectangleIcon className="h-6 w-6" />
@ -151,7 +151,7 @@ export function Sidebar() {
<Bars3Icon className="h-6 w-6" aria-hidden="true" />
</button>
<div className="flex-1 text-sm font-semibold leading-6 text-white">Dashboard</div>
<Link href="#">
<Link href="/api/auth/signout">
<span className="sr-only">Sign out</span>
<ArrowRightOnRectangleIcon className="h-6 w-6 text-white" />
</Link>