feat: SW-276 Implemented child age validation
This commit is contained in:
@@ -17,6 +17,7 @@ export default function GuestsRoomPicker({
|
||||
handleOnSelect = (selected: GuestsRoom, index: number) => {},
|
||||
room = { adults: 1, children: [] },
|
||||
index = 1,
|
||||
childAgeError,
|
||||
}: GuestsRoomPickerProps) {
|
||||
const intl = useIntl()
|
||||
const roomLabel = intl.formatMessage({ id: "Room" })
|
||||
@@ -41,6 +42,7 @@ export default function GuestsRoomPicker({
|
||||
roomChildren={room.children}
|
||||
adultCount={room.adults}
|
||||
updateChildren={updateChildren}
|
||||
childAgeError={childAgeError}
|
||||
/>
|
||||
</section>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user