fix: Planlar sekmesi erişilemiyordu (gizli taşma) + isim menüsündeki ölü bağlantılar ve uydurma '7 gün kalan' etiketi
This commit is contained in:
@@ -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 = () => {
|
||||
<p className="text-xs text-slate-500 truncate">{authUser?.email || userProfile.company}</p>
|
||||
</div>
|
||||
<div className="py-1 text-xs">
|
||||
<a href="#profile" className="px-4 py-2 hover:bg-slate-50 flex items-center gap-2 text-slate-700">
|
||||
<button
|
||||
onClick={() => { setShowUserMenu(false); setActiveTab('list'); }}
|
||||
className="w-full text-left px-4 py-2 hover:bg-slate-50 flex items-center gap-2 text-slate-700"
|
||||
>
|
||||
<User className="w-4 h-4 text-slate-400" /> Firma Bilgileri & Üyeler
|
||||
</a>
|
||||
<a href="#trial" className="px-4 py-2 hover:bg-slate-50 flex items-center gap-2 text-slate-700">
|
||||
<Gift className="w-4 h-4 text-amber-500" /> Abonelik Planları (7 Gün Kalan)
|
||||
</a>
|
||||
<a href="#settings" className="px-4 py-2 hover:bg-slate-50 flex items-center gap-2 text-slate-700">
|
||||
</button>
|
||||
<button
|
||||
onClick={() => { setShowUserMenu(false); setActiveTab('planlar'); }}
|
||||
className="w-full text-left px-4 py-2 hover:bg-slate-50 flex items-center gap-2 text-slate-700"
|
||||
>
|
||||
<Gift className="w-4 h-4 text-amber-500" />
|
||||
<span>Abonelik & Planlar</span>
|
||||
<span className="ml-auto text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-slate-100 text-slate-600 border border-slate-200">
|
||||
{planAdi}
|
||||
</span>
|
||||
</button>
|
||||
<button
|
||||
onClick={() => { setShowUserMenu(false); setActiveTab('pwa_settings'); }}
|
||||
className="w-full text-left px-4 py-2 hover:bg-slate-50 flex items-center gap-2 text-slate-700"
|
||||
>
|
||||
<CheckCircle className="w-4 h-4 text-slate-400" /> Bildirim Tercihleri
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
<div className="border-t border-slate-100 pt-1 text-xs">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user