File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/components/DatePicker Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ const defaultStory = {
8
8
} ,
9
9
} ,
10
10
argTypes : {
11
- date : {
11
+ startDate : {
12
+ control : "date" ,
13
+ } ,
14
+ endDate : {
12
15
control : "date" ,
13
16
} ,
14
17
futureDatesDisabled : {
@@ -23,14 +26,16 @@ const defaultStory = {
23
26
} ,
24
27
component : DateRangePicker ,
25
28
render : ( args : Args ) => {
26
- const date = args . date ? new Date ( args . date ) : undefined ;
29
+ const endDate = args . endDate ? new Date ( args . endDate ) : undefined ;
30
+ const startDate = args . startDate ? new Date ( args . startDate ) : undefined ;
27
31
return (
28
32
< DateRangePicker
29
- date = { date }
33
+ endDate = { endDate }
30
34
disabled = { args . disabled }
31
35
futureDatesDisabled = { args . futureDatesDisabled }
32
36
onSelectDate = { args . onSelectDate }
33
37
placeholder = { args . placeholder }
38
+ startDate = { startDate }
34
39
/>
35
40
) ;
36
41
} ,
You can’t perform that action at this time.
0 commit comments