File tree Expand file tree Collapse file tree 2 files changed +34
-14
lines changed
src/components/DateRangePicker Expand file tree Collapse file tree 2 files changed +34
-14
lines changed Original file line number Diff line number Diff line change @@ -574,18 +574,29 @@ function DateRangePicker(props) {
574
574
preview = { preview }
575
575
onPreviewChange = { onPreviewChange }
576
576
/>
577
- < button
578
- type = "button"
579
- styleName = "reset-button"
580
- onClick = { ( ) => {
581
- onDateRangePickerChange ( {
582
- startDate : null ,
583
- endDate : null ,
584
- } ) ;
585
- } }
586
- >
587
- Reset
588
- </ button >
577
+ < div styleName = "calendar-footer" >
578
+ < button
579
+ type = "button"
580
+ styleName = "calendar-button"
581
+ onClick = { ( ) => {
582
+ onDateRangePickerChange ( {
583
+ startDate : null ,
584
+ endDate : null ,
585
+ } ) ;
586
+ } }
587
+ >
588
+ Reset
589
+ </ button >
590
+ < button
591
+ type = "button"
592
+ styleName = "calendar-button"
593
+ onClick = { ( ) => {
594
+ setIsComponentVisible ( false ) ;
595
+ } }
596
+ >
597
+ Close
598
+ </ button >
599
+ </ div >
589
600
</ div >
590
601
) }
591
602
</ div >
Original file line number Diff line number Diff line change @@ -391,6 +391,7 @@ $darkGreen: #0AB88A;;
391
391
z-index : 10 ;
392
392
393
393
@include phone {
394
+ width : 100vw ;
394
395
position : fixed ;
395
396
top : 0 ;
396
397
left : 0 ;
@@ -402,7 +403,15 @@ $darkGreen: #0AB88A;;
402
403
border-radius : 0 ;
403
404
}
404
405
405
- .reset-button {
406
+ .calendar-footer {
407
+ width : 100% ;
408
+
409
+ @include phone {
410
+ padding : 0 20px ;
411
+ }
412
+ }
413
+
414
+ .calendar-button {
406
415
@include roboto-bold ;
407
416
408
417
width : 71px ;
@@ -421,7 +430,7 @@ $darkGreen: #0AB88A;;
421
430
height : 26px ;
422
431
line-height : 27px ;
423
432
font-size : 12px ;
424
- margin : 20 px 12px 0 ;
433
+ margin : 0 12px 0 ;
425
434
}
426
435
}
427
436
}
You can’t perform that action at this time.
0 commit comments