@@ -33,22 +33,40 @@ const Month = ({
33
33
Month . propTypes = {
34
34
title : PropTypes . string ,
35
35
className : PropTypes . string ,
36
- onDateSelect : PropTypes . func . isRequired ,
37
- activateAll : PropTypes . func ,
38
- startDate : PropTypes . instanceOf ( Date ) . isRequired ,
39
- endDate : PropTypes . instanceOf ( Date ) . isRequired ,
36
+ onDateSelect : PropTypes . func ,
37
+ activateAll : PropTypes . bool ,
38
+ startDate : PropTypes . instanceOf ( Date ) ,
39
+ endDate : PropTypes . instanceOf ( Date ) ,
40
40
selected : PropTypes . instanceOf ( Date ) ,
41
- activated : PropTypes . bool ,
42
- highlighted : PropTypes . bool ,
41
+ activated : PropTypes . arrayOf ( Date ) ,
42
+ highlighted : PropTypes . oneOfType ( [
43
+ PropTypes . shape ( {
44
+ dates : PropTypes . arrayOf ( PropTypes . instanceOf ( Date ) ) ,
45
+ style : PropTypes . shape ( {
46
+ color : PropTypes . string ,
47
+ backgroundColor : PropTypes . string ,
48
+ } ) ,
49
+ } ) ,
50
+ PropTypes . arrayOf ( PropTypes . shape ( {
51
+ dates : PropTypes . arrayOf ( PropTypes . instanceOf ( Date ) ) ,
52
+ style : PropTypes . shape ( {
53
+ color : PropTypes . string ,
54
+ backgroundColor : PropTypes . string ,
55
+ } ) ,
56
+ } ) ) ,
57
+ ] ) ,
43
58
} ;
44
59
45
60
Month . defaultProps = {
46
61
title : '' ,
47
62
className : '' ,
48
63
selected : null ,
49
- activated : false ,
64
+ activated : null ,
65
+ startDate : null ,
66
+ endDate : null ,
50
67
highlighted : false ,
51
- activateAll : null ,
68
+ activateAll : true ,
69
+ onDateSelect : null ,
52
70
} ;
53
71
54
72
export default Month ;
0 commit comments