From 5d502c8ae4086793de9f73aaebd16bff561b9578 Mon Sep 17 00:00:00 2001 From: ht Date: Sat, 29 Aug 2026 17:39:31 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20Planlar=20sekmesi=20eri=C5=9Filemiyordu?= =?UTF-8?q?=20(gizli=20ta=C5=9Fma)=20+=20isim=20men=C3=BCs=C3=BCndeki=20?= =?UTF-8?q?=C3=B6l=C3=BC=20ba=C4=9Flant=C4=B1lar=20ve=20uydurma=20'7=20g?= =?UTF-8?q?=C3=BCn=20kalan'=20etiketi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.jsx | 32 ++++++++++++---- src/components/TopNavigation.jsx | 66 ++++++++++++++++++++++++++++++-- 2 files changed, 88 insertions(+), 10 deletions(-) diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 6e81f74..c8e9595 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -17,9 +17,14 @@ export const Header = () => { refreshLiveEKAPData, authUser, isAdmin, + plan, handleLogout } = useApp(); + // Plan rozeti gerçek /api/me/plan yanıtından gelir (uydurma "7 gün kalan" değil). + const PLAN_ADLARI = { ucretsiz: 'Ücretsiz', pro: 'Pro', kurumsal: 'Kurumsal' }; + const planAdi = PLAN_ADLARI[plan?.plan] || 'Ücretsiz'; + const [showNotifications, setShowNotifications] = useState(false); const [showUserMenu, setShowUserMenu] = useState(false); @@ -184,15 +189,28 @@ export const Header = () => {

{authUser?.email || userProfile.company}

- + + +
+ )} + {tasma.sag && ( + + )} +
{navItems.map(item => { const Icon = item.icon; const isActive = activeTab === item.id; return (
+
); };