chore: change sidebar logout href

This commit is contained in:
Matilda Landström
2024-05-14 15:09:02 +02:00
parent 1777ed0205
commit a43754d624

View File

@@ -1,6 +1,7 @@
import { Fragment } from "react"
import { LogOut } from "react-feather"
import { logout } from "@/constants/routes/handleAuth"
import { serverClient } from "@/lib/trpc/server"
import Link from "@/components/TempDesignSystem/Link"
@@ -41,7 +42,7 @@ export default async function Sidebar() {
</Fragment>
))}
<Link href="/api/web/auth/signout" variant="sidebar">
<Link href={logout[lang]} variant="sidebar">
Log out <LogOut height={16} width={16} />
</Link>
</nav>