diff --git a/src/components/ui/calendar.tsx b/src/components/ui/calendar.tsx index 900a69e4..9cb96dca 100644 --- a/src/components/ui/calendar.tsx +++ b/src/components/ui/calendar.tsx @@ -11,12 +11,17 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C return ( - - {date ? format(date, "PPP") : placeholder} - + {date ? format(date, "PPP") : {placeholder}} @@ -73,7 +71,7 @@ export function DatePicker({ onSelect={handleSelect} disabled={getDisabledDates} initialFocus - className="p-3 pointer-events-auto" + captionLayout="dropdown-buttons" fromYear={fromYear} toYear={toYear} />