feat: add desktop ui to calendar
This commit is contained in:
@@ -3,8 +3,9 @@ import { z } from "zod"
|
||||
import type { Location } from "@/types/trpc/routers/hotel/locations"
|
||||
|
||||
export const bookingWidgetSchema = z.object({
|
||||
search: z.string({ coerce: true }).min(1, "Required"),
|
||||
bookingCode: z.string(), // Update this as required when working with booking codes component
|
||||
date: z.object({
|
||||
// Update this as required once started working with Date picker in Nights component
|
||||
from: z.string(),
|
||||
to: z.string(),
|
||||
}),
|
||||
@@ -23,9 +24,7 @@ export const bookingWidgetSchema = z.object({
|
||||
},
|
||||
{ message: "Required" }
|
||||
),
|
||||
bookingCode: z.string(), // Update this as required when working with booking codes component
|
||||
redemption: z.boolean().default(false),
|
||||
voucher: z.boolean().default(false),
|
||||
rooms: z.array(
|
||||
// This will be updated when working in guests component
|
||||
z.object({
|
||||
@@ -38,4 +37,6 @@ export const bookingWidgetSchema = z.object({
|
||||
),
|
||||
})
|
||||
),
|
||||
search: z.string({ coerce: true }).min(1, "Required"),
|
||||
voucher: z.boolean().default(false),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user