initial date was passed to date-picker

This commit is contained in:
Vladimir Khvan 2023-07-07 17:42:41 +05:00
parent dbbffdf4e5
commit 3f440064d8
2 changed files with 4 additions and 5 deletions

View File

@ -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 */

View File

@ -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 */