From 0ddb298dc44391610495b46510f7f4d863e7358f Mon Sep 17 00:00:00 2001 From: Markov Date: Mon, 23 Feb 2026 11:46:37 +0100 Subject: [PATCH] fix: restore logout button in sidebar --- src/components/Sidebar.tsx | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 61935b1..7a2bb8a 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -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) {
Team Board v0.2 - setOpen(false)} - className="text-[var(--muted)] hover:text-[var(--fg)] transition-colors" - title="Настройки" - > - ⚙️ - +
+ setOpen(false)} + className="text-[var(--muted)] hover:text-[var(--fg)] transition-colors" + title="Настройки" + > + ⚙️ + + +
);