From 2f7998cc0cb4d515a4a85102b48aac0ffe28ed80 Mon Sep 17 00:00:00 2001 From: Khaled Date: Mon, 9 Dec 2019 17:12:37 +0200 Subject: [PATCH] Fix: "disabledTime" property type in date-picker disabledTime property should not be required in DatePicker component. --- components/date-picker/interface.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/date-picker/interface.tsx b/components/date-picker/interface.tsx index 23878505e9..a745881eaa 100644 --- a/components/date-picker/interface.tsx +++ b/components/date-picker/interface.tsx @@ -46,7 +46,7 @@ export interface DatePickerProps extends PickerProps, SinglePickerProps { showTime?: TimePickerProps | boolean; showToday?: boolean; open?: boolean; - disabledTime: ( + disabledTime?: ( current?: moment.Moment | null, ) => { disabledHours?: () => number[];