fix: persist explicit review status and align review counters

This commit is contained in:
2026-09-06 09:02:28 +03:00
parent a9036cf909
commit f88a0c7bfe
7 changed files with 360 additions and 5 deletions
+5 -1
View File
@@ -97,7 +97,11 @@ export const TenderDetailModal = () => {
</button>
<div className="flex items-center gap-4 text-xs">
<span className="text-slate-400">İnceleyen: <strong className="text-white">{userProfile.name}</strong></span>
<button type="button" disabled={savingCount > 0} aria-pressed={Boolean(tender.incelendi)}
onClick={() => mutateTender(tender.id,{incelendi:!tender.incelendi})}
className="text-xs px-3 py-1.5 rounded-lg border border-slate-500 disabled:opacity-50">
{tender.incelendi ? 'İncelendi — yeniden aç' : 'İncelendi olarak işaretle'}
</button>
<button
onClick={() => toggleTrackTender(tender.id)}
className={`flex items-center gap-1.5 font-bold px-3 py-1.5 rounded-lg text-xs transition-colors ${