feat: add initial datepicker, no ui/ux

This commit is contained in:
Simon Emanuelsson
2024-08-23 16:17:35 +02:00
parent 22e7423155
commit 76e47994d0
12 changed files with 227 additions and 21 deletions

View File

@@ -4,10 +4,9 @@ import type { Location } from "@/types/trpc/routers/hotel/locations"
export const bookingWidgetSchema = z.object({
search: z.string({ coerce: true }).min(1, "Required"),
nights: z.object({
// Update this as required once started working with Date picker in Nights component
fromDate: z.string(),
toDate: z.string(),
date: z.object({
from: z.string(),
to: z.string(),
}),
location: z.string().refine(
(value) => {