filters modal laptop fix

This commit is contained in:
2024-05-30 18:39:55 +05:00
parent 698222f0f7
commit 5879fbb951
@@ -8,6 +8,7 @@ import Checkbox from "../../Checkbox";
import MultiRangeSlider from "../../MultiRangeSlider";
import Switch from "../../Switch";
import ResetIcon from "../../icons/ResetIcon";
import { useSwipeable } from "react-swipeable";
const SearchFiltersModal = () => {
const { setModal } = useModal();
@@ -22,6 +23,9 @@ const SearchFiltersModal = () => {
roveHomeTypeCheckboxes,
setRoveHomeTypeCheckboxes,
} = useSearchFilters();
const handlers = useSwipeable({
onSwipedDown: () => handleOnCrossClick(),
});
const handleOnCrossClick = () => {
if (setIsAnimate) {
@@ -90,7 +94,10 @@ const SearchFiltersModal = () => {
};
return (
<div className="bg-[#F3F3F2] rounded-ss-lg rounded-se-lg h-full p-6 flex flex-col gap-6">
<div
className="bg-[#F3F3F2] rounded-ss-lg rounded-se-lg h-full p-6 flex flex-col gap-6"
{...handlers}
>
<div className="flex justify-between pb-6 border-b">
<h2 className="text-[#0D1922] text-subheadline-m font-semibold">
Filters