fix: restore logout button in sidebar
All checks were successful
Deploy Web Client / deploy (push) Successful in 37s

This commit is contained in:
Markov 2026-02-23 11:46:37 +01:00
parent f5e4aa03fc
commit 0ddb298dc4

View File

@ -3,6 +3,7 @@
import { useState } from "react";
import Link from "next/link";
import { Project } from "@/lib/api";
import { logout } from "@/lib/auth-client";
interface Props {
projects: Project[];
@ -57,6 +58,7 @@ export default function Sidebar({ projects, activeSlug }: Props) {
<div className="p-3 border-t border-[var(--border)] flex items-center justify-between">
<span className="text-xs text-[var(--muted)]">Team Board v0.2</span>
<div className="flex items-center gap-2">
<Link
href="/settings"
onClick={() => setOpen(false)}
@ -65,6 +67,14 @@ export default function Sidebar({ projects, activeSlug }: Props) {
>
</Link>
<button
onClick={logout}
className="text-[var(--muted)] hover:text-[var(--fg)] transition-colors"
title="Выйти"
>
🚪
</button>
</div>
</div>
</>
);