SW-65 Removed action used onSubmit and dt lib

This commit is contained in:
Hrishikesh Vaipurkar
2024-08-01 13:40:18 +02:00
parent 6a26949faa
commit fb5ba552e9
5 changed files with 19 additions and 80 deletions

View File

@@ -6,12 +6,11 @@ export const bookingWidgetSchema = z.object({
stayValue: z.string(),
}),
nights: z.object({
fromDate: z.date().default(new Date()),
toDate: z.date().default(new Date(new Date().setDate(+1))),
}),
bookingCode: z.object({
value: z.string(),
// Update this as required once started working with Date picker in Nights component
fromDate: z.string(),
toDate: z.string(),
}),
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(