From c19351f434118f1282e09e5779754cf6bc1a4016 Mon Sep 17 00:00:00 2001 From: sbilketay Date: Wed, 26 Nov 2025 22:24:21 +0300 Subject: [PATCH] UI update --- frontend/src/components/DashboardLayout.tsx | 19 +++---------------- frontend/src/pages/JobsPage.tsx | 8 ++++---- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/DashboardLayout.tsx b/frontend/src/components/DashboardLayout.tsx index e3a9e60..a977611 100644 --- a/frontend/src/components/DashboardLayout.tsx +++ b/frontend/src/components/DashboardLayout.tsx @@ -6,10 +6,9 @@ import { Button } from "./ui/button"; import { ThemeToggle } from "./ThemeToggle"; import { useAuth } from "../providers/auth-provider"; import { cn } from "../lib/utils"; -import { apiClient } from "../api/client"; export function DashboardLayout() { - const { user, token, logout } = useAuth(); + const { user, logout } = useAuth(); const navigate = useNavigate(); const [isLoggingOut, setIsLoggingOut] = useState(false); @@ -21,8 +20,6 @@ export function DashboardLayout() { [] ); - const socketUrl = useMemo(() => apiClient.defaults.baseURL || window.location.origin, []); - const handleLogout = () => { setIsLoggingOut(true); logout(); @@ -45,8 +42,8 @@ export function DashboardLayout() { cn( "flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition", isActive - ? "bg-primary text-primary-foreground shadow-sm" - : "text-muted-foreground hover:bg-accent hover:text-accent-foreground" + ? "bg-accent text-foreground shadow-sm" + : "text-muted-foreground hover:bg-accent hover:text-foreground" ) } > @@ -77,16 +74,6 @@ export function DashboardLayout() {
-
-
-
Proje
-
Wisecolt CI
-
-
- Bağlantı: {socketUrl} -
-
-
diff --git a/frontend/src/pages/JobsPage.tsx b/frontend/src/pages/JobsPage.tsx index f783c72..5ca610d 100644 --- a/frontend/src/pages/JobsPage.tsx +++ b/frontend/src/pages/JobsPage.tsx @@ -187,19 +187,19 @@ export function JobsPage() {