diff --git a/components/GuestsRoomsPicker/AdultSelector/adult-selector.module.css b/components/GuestsRoomsPicker/AdultSelector/adult-selector.module.css index 37a120103..a35254d1c 100644 --- a/components/GuestsRoomsPicker/AdultSelector/adult-selector.module.css +++ b/components/GuestsRoomsPicker/AdultSelector/adult-selector.module.css @@ -1,9 +1,15 @@ .container { - display: grid; - grid-template-columns: repeat(4, auto); + display: flex; + justify-content: space-between; align-items: center; } - -.textCenter { - text-align: center; +.counterContainer { + display: flex; + justify-content: flex-end; + align-items: center; + gap: 20px; +} +.counterBtn { + width: 40px; + height: 40px; } diff --git a/components/GuestsRoomsPicker/AdultSelector/index.tsx b/components/GuestsRoomsPicker/AdultSelector/index.tsx index b591e7eb0..acac7bf92 100644 --- a/components/GuestsRoomsPicker/AdultSelector/index.tsx +++ b/components/GuestsRoomsPicker/AdultSelector/index.tsx @@ -5,7 +5,9 @@ import { useIntl } from "react-intl" import { guestsRoomsStore } from "@/stores/guests-rooms" +import { MinusIcon, PlusIcon } from "@/components/Icons" import Button from "@/components/TempDesignSystem/Button" +import Body from "@/components/TempDesignSystem/Text/Body" import Caption from "@/components/TempDesignSystem/Text/Caption" import styles from "./adult-selector.module.css" @@ -50,26 +52,42 @@ export default function AdultSelector({ roomIndex = 0 }: AdultSelectorProps) { return (
- {adultsLabel} - - {adults} - + + {adultsLabel} + +
+ + + {adults} + + +
) } diff --git a/components/GuestsRoomsPicker/ChildSelector/ChildInfoSelector.tsx b/components/GuestsRoomsPicker/ChildSelector/ChildInfoSelector.tsx index 85f37f9ce..289d5761c 100644 --- a/components/GuestsRoomsPicker/ChildSelector/ChildInfoSelector.tsx +++ b/components/GuestsRoomsPicker/ChildSelector/ChildInfoSelector.tsx @@ -1,9 +1,15 @@ +"use client" + import { useFormContext } from "react-hook-form" import { useIntl } from "react-intl" import { guestsRoomsStore } from "@/stores/guests-rooms" +import { ErrorCircleIcon } from "@/components/Icons" import Select from "@/components/TempDesignSystem/Select" +import Caption from "@/components/TempDesignSystem/Text/Caption" + +import styles from "./child-selector.module.css" import { BedTypeEnum } from "@/types/components/bookingWidget/enums" import { @@ -96,36 +102,43 @@ export default function ChildInfoSelector({ return ( <> -
- { - updateSelectedBed(parseInt(key.toString())) + updateSelectedAge(parseInt(key.toString())) }} name={`rooms.${roomIndex}.children.${index}.age`} - placeholder={bedLabel} + placeholder={ageLabel} /> - ) : null} +
+
+ {child.age !== -1 ? ( +