initial date was passed to date-picker
This commit is contained in:
parent
dbbffdf4e5
commit
3f440064d8
@ -88,6 +88,7 @@ const DateTimePicker = (props) => {
|
||||
return (
|
||||
<Selectors className={className} id={id}>
|
||||
<DatePicker
|
||||
initialDate={initialDate}
|
||||
date={date}
|
||||
onChange={handleChange}
|
||||
selectDateText={selectDateText}
|
||||
@ -116,7 +117,7 @@ const DateTimePicker = (props) => {
|
||||
|
||||
DateTimePicker.propTypes = {
|
||||
/** Date object */
|
||||
date: PropTypes.object,
|
||||
initialDate: PropTypes.object,
|
||||
/** Select date text */
|
||||
selectDateText: PropTypes.string,
|
||||
/** Allows to set classname */
|
||||
|
@ -222,10 +222,8 @@ const TimePicker = ({
|
||||
);
|
||||
};
|
||||
TimePicker.propTypes = {
|
||||
/** Inital date */
|
||||
date: PropTypes.object,
|
||||
/** State setter function */
|
||||
setDate: PropTypes.func,
|
||||
/** Default time */
|
||||
initialTime: PropTypes.object,
|
||||
/** Allows to set classname */
|
||||
className: PropTypes.string,
|
||||
/** Allow you to handle changing events of component */
|
||||
|
Loading…
Reference in New Issue
Block a user