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