improvement: typed date format

This commit is contained in:
Scott Wilson
2024-11-27 12:17:30 -08:00
parent ca55f19926
commit 48fb77be49
@@ -14,7 +14,7 @@ export type DatePickerProps = Omit<DayPickerProps, "selected"> & {
onChange: (date?: Date) => void; onChange: (date?: Date) => void;
popUpProps: PopoverProps; popUpProps: PopoverProps;
popUpContentProps: PopoverContentProps; popUpContentProps: PopoverContentProps;
dateFormat?: string; dateFormat?: "PPP" | "PP" | "P"; // extend as needed
}; };
// Doc: https://react-day-picker.js.org/ // Doc: https://react-day-picker.js.org/