Apply saved filters to tender search with visible region criteria

This commit is contained in:
2026-09-06 13:40:26 +03:00
parent 2a9281c9a5
commit 2f86c6d690
8 changed files with 90 additions and 11 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ export const LeftSidebar = ({onOpenProductSearch} = {}) => {
quickFilter,
setQuickFilter,
setActiveTab,
savedFilters,
savedFilters, applySavedFilter, selectedRegion,
deleteSavedFilter,
savingCount,
selectedAlimTuru,
@@ -89,7 +89,7 @@ export const LeftSidebar = ({onOpenProductSearch} = {}) => {
<span className="font-bold text-xs uppercase tracking-wider text-slate-700 flex items-center gap-1.5">
<Compass className="w-4 h-4 text-blue-600" /> Hızlı Erişim
</span>
{(quickFilter !== 'all' || selectedSektorler.length || selectedCpvler.length || selectedCity || selectedAlimTuru || selectedKurumTipi) && (
{(selectedRegion || quickFilter !== 'all' || selectedSektorler.length || selectedCpvler.length || selectedCity || selectedAlimTuru || selectedKurumTipi) && (
<button
onClick={clearAllFilters}
className="text-[11px] font-medium text-blue-600 hover:underline"
@@ -156,7 +156,7 @@ export const LeftSidebar = ({onOpenProductSearch} = {}) => {
className="bg-slate-50 hover:bg-slate-100 p-2.5 rounded-lg border border-slate-200 flex items-center justify-between text-xs transition-colors group"
>
<div className="flex-1 min-w-0 pr-2">
<p className="font-bold text-slate-800 truncate">{filter.name}</p>
<button className="font-bold text-blue-800 underline text-left" onClick={()=>applySavedFilter(filter)} aria-label={`${filter.name} filtresini uygula`}>{filter.name}</button>
<p className="text-[10px] text-slate-500 truncate mt-0.5">
👤 {filter.user} {filter.sehir && `• 📍 ${filter.sehir}`}
</p>