Make mobile filters a keyboard-accessible modal drawer

This commit is contained in:
2026-09-06 09:56:34 +03:00
parent 3550f1a9bc
commit 5895f60b28
4 changed files with 55 additions and 24 deletions
+2 -1
View File
@@ -6,7 +6,7 @@ import {
Bot, PlusCircle, Trash2, ChevronDown, ChevronUp, Filter, MapPin, Building2, Tag, Star, Hash
} from 'lucide-react';
export const LeftSidebar = () => {
export const LeftSidebar = ({onOpenProductSearch} = {}) => {
const {
favoriteKurumlar,
quickFilter,
@@ -49,6 +49,7 @@ export const LeftSidebar = () => {
return () => { iptal = true; clearTimeout(z); };
}, [okasQ]);
const okasIleAra = (k) => {
onOpenProductSearch?.();
setUrunAramaBaslangic({ okasKod: k.kod, okasAd: k.ad });
setIsUrunAramaOpen(true);
};