File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/Shared/Components/DatePicker Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,17 @@ export interface SingleDatePickerProps {
50
50
dataTestId ?: string
51
51
}
52
52
53
+ export interface DateSelectPickerType extends SelectPickerOptionType {
54
+ value : string
55
+ }
56
+
53
57
export interface MonthlySelectProps extends Pick < SingleDatePickerProps , 'dataTestId' > {
54
58
/**
55
59
* Current selected date object
56
60
*
57
61
* @default 'new Date()'
58
62
*/
59
- selectedMonthlyDate : SelectPickerOptionType
63
+ selectedMonthlyDate : DateSelectPickerType
60
64
/**
61
65
* Onchange handle picker type
62
66
*/
@@ -73,7 +77,7 @@ export interface TimeSelectProps {
73
77
/**
74
78
* Handler for updating the date from the parent component
75
79
*/
76
- onChange : ( date : SelectPickerOptionType ) => void
80
+ onChange : ( date : DateSelectPickerType ) => void
77
81
/**
78
82
* Props for the time picker
79
83
*/
@@ -89,15 +93,15 @@ export interface TimeSelectProps {
89
93
/**
90
94
* Id for the component
91
95
*/
92
- default12HourTime : SelectPickerOptionType
96
+ default12HourTime : DateSelectPickerType
93
97
/**
94
98
* Data test id for time picker
95
99
*/
96
100
dataTestIdForTime ?: string
97
101
/**
98
102
* To hide time selector
99
103
*/
100
- selectedTimeOption : SelectPickerOptionType
104
+ selectedTimeOption : DateSelectPickerType
101
105
}
102
106
103
107
export interface DateTimePickerProps
You can’t perform that action at this time.
0 commit comments