From 9083c29a266d0b3486c6964d63071b1834525569 Mon Sep 17 00:00:00 2001 From: Sergey Bolshakov Date: Mon, 27 Oct 2025 01:44:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=BF=D0=BE=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B5?= =?UTF-8?q?,=20=D0=B8=D1=82=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D1=8F=206?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/form/guest-picker.tsx | 50 +++++++++++++++++----------- src/components/ui/counter.tsx | 10 +++--- 2 files changed, 35 insertions(+), 25 deletions(-) diff --git a/src/components/form/guest-picker.tsx b/src/components/form/guest-picker.tsx index b800967..35e8228 100644 --- a/src/components/form/guest-picker.tsx +++ b/src/components/form/guest-picker.tsx @@ -2,14 +2,14 @@ import React, { useState } from "react"; import { - Select, - SelectContent, - SelectTrigger, - SelectValue, -} from "@/components/ui/select"; + Popover, + PopoverContent, + PopoverTrigger, +} from "@/components/ui/popover"; import { Button } from "@/components/ui/button"; import Icon from "../ui/icon"; import { Counter } from "../ui/counter"; +import { ChevronUp, ChevronDown } from "lucide-react"; interface GuestPickerProps { onApply?: (adults: number, children: number) => void; @@ -17,7 +17,7 @@ interface GuestPickerProps { } export const GuestPicker: React.FC = ({ onApply }) => { - const [adults, setAdults] = useState(1); + const [adults, setAdults] = useState(0); const [children, setChildren] = useState(0); const [isOpen, setIsOpen] = useState(false); @@ -38,26 +38,36 @@ export const GuestPicker: React.FC = ({ onApply }) => { return (
- + +
); }; diff --git a/src/components/ui/counter.tsx b/src/components/ui/counter.tsx index fe3abad..6ad7089 100644 --- a/src/components/ui/counter.tsx +++ b/src/components/ui/counter.tsx @@ -31,14 +31,14 @@ export const Counter: React.FC = ({ }; return ( -
+
);