fix: restore logout button in sidebar
All checks were successful
Deploy Web Client / deploy (push) Successful in 37s
All checks were successful
Deploy Web Client / deploy (push) Successful in 37s
This commit is contained in:
parent
f5e4aa03fc
commit
0ddb298dc4
@ -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,14 +58,23 @@ 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>
|
||||
<Link
|
||||
href="/settings"
|
||||
onClick={() => setOpen(false)}
|
||||
className="text-[var(--muted)] hover:text-[var(--fg)] transition-colors"
|
||||
title="Настройки"
|
||||
>
|
||||
⚙️
|
||||
</Link>
|
||||
<div className="flex items-center gap-2">
|
||||
<Link
|
||||
href="/settings"
|
||||
onClick={() => setOpen(false)}
|
||||
className="text-[var(--muted)] hover:text-[var(--fg)] transition-colors"
|
||||
title="Настройки"
|
||||
>
|
||||
⚙️
|
||||
</Link>
|
||||
<button
|
||||
onClick={logout}
|
||||
className="text-[var(--muted)] hover:text-[var(--fg)] transition-colors"
|
||||
title="Выйти"
|
||||
>
|
||||
🚪
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user