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 { 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,6 +58,7 @@ 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>
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
<Link
|
<Link
|
||||||
href="/settings"
|
href="/settings"
|
||||||
onClick={() => setOpen(false)}
|
onClick={() => setOpen(false)}
|
||||||
@ -65,6 +67,14 @@ export default function Sidebar({ projects, activeSlug }: Props) {
|
|||||||
>
|
>
|
||||||
⚙️
|
⚙️
|
||||||
</Link>
|
</Link>
|
||||||
|
<button
|
||||||
|
onClick={logout}
|
||||||
|
className="text-[var(--muted)] hover:text-[var(--fg)] transition-colors"
|
||||||
|
title="Выйти"
|
||||||
|
>
|
||||||
|
🚪
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user