feat: Add a new Sidebar component for application navigation, user profile display, and logout functionality.

This commit is contained in:
Michael committed 2026-02-22 18:27:51 +01:00
1 parent 43c625c3ec
commit 2fbe88be71
1 file changed
+4 -1
+4 -1
View File
@@ -91,7 +91,10 @@ export function Sidebar() {
</div>
<button
onClick={() => signOut({ callbackUrl: "/login" })}
onClick={async () => {
await signOut({ redirect: false });
window.location.href = "/login";
}}
className="w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-[13px] font-medium text-[var(--accent-error)] hover:bg-[var(--accent-error-bg)] transition-colors"
>
<LogOut className="w-[15px] h-[15px]" strokeWidth={1.8} />