File tree 2 files changed +5
-9
lines changed
src/components/datepicker
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const Template: Story<DatePickerProps> = (props) => {
18
18
< DatePicker
19
19
{ ...props }
20
20
selectProps = { {
21
+ ...props . selectProps ,
21
22
value : [ new Date ( startDate ) . toISOString ( ) ] ,
22
23
options : [ ] ,
23
24
onChange : ( ) => { } ,
Original file line number Diff line number Diff line change @@ -28,19 +28,14 @@ const DatePicker: FC<DatePickerProps & ReactDatePickerProps> = ({
28
28
alignItems = "center"
29
29
onClick = { ( ) => setOpen ( ! open ) }
30
30
sx = { {
31
- backgroundColor : 'white' ,
32
- cursor : 'pointer' ,
33
31
height : '32px' ,
34
32
px : '5px' ,
35
- borderColor : 'white' ,
36
33
borderWidth : '1px' ,
37
34
borderStyle : 'solid' ,
38
- ':hover' : {
39
- borderColor : 'grayShade2' ,
40
- borderWidth : '1px' ,
41
- borderStyle : 'solid' ,
42
- } ,
35
+ ...( open ? { borderColor : 'grayShade1' } : { } ) ,
43
36
} }
37
+ variant = { selectProps . variant ?? 'white' }
38
+ tx = "variants.select"
44
39
>
45
40
< Labeling gray mr = "5px" >
46
41
{ selectProps . noDataMessage }
@@ -51,7 +46,7 @@ const DatePicker: FC<DatePickerProps & ReactDatePickerProps> = ({
51
46
>
52
47
{ selectProps . value }
53
48
</ Value >
54
- < GetIcon icon = { IconName . arrow_up_down } size = 'sm' />
49
+ < GetIcon icon = { IconName . arrow_up_down } size = "sm" />
55
50
</ Flex >
56
51
< Box alignSelf = { datePickerAlign === 'right' ? 'flex-end' : 'flex-start' } >
57
52
< ReactDatePicker
You can’t perform that action at this time.
0 commit comments