mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-11 17:26:32 +02:00
feat: Add a new Sidebar component for application navigation, user profile display, and logout functionality.
This commit is contained in:
1 parent
43c625c3ec
commit
2fbe88be71
1 file changed
+4
-1
@@ -91,7 +91,10 @@ export function Sidebar() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<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"
|
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} />
|
<LogOut className="w-[15px] h-[15px]" strokeWidth={1.8} />
|
||||||
|
|||||||
Reference in new issue
Block a user