fix: handle stickyness when scrolling is locked

This commit is contained in:
Christel Westerberg
2024-11-13 14:43:06 +01:00
parent ca3819f7cc
commit 7a3194f978
9 changed files with 141 additions and 100 deletions

View File

@@ -4,12 +4,14 @@ import type { Location } from "@/types/trpc/routers/hotel/locations"
export const guestRoomSchema = z.object({
adults: z.number().default(1),
child: z.array(
z.object({
age: z.number().nonnegative(),
bed: z.number(),
})
),
child: z
.array(
z.object({
age: z.number().nonnegative(),
bed: z.number(),
})
)
.default([]),
})
export const guestRoomsSchema = z.array(guestRoomSchema)