|
|
@ -9,6 +9,7 @@ interface PropsType {
|
|
|
|
placeholder: string;
|
|
|
|
placeholder: string;
|
|
|
|
value?: Date;
|
|
|
|
value?: Date;
|
|
|
|
dateOnly?: boolean;
|
|
|
|
dateOnly?: boolean;
|
|
|
|
|
|
|
|
disabled?: boolean;
|
|
|
|
onChange: (date?: Date) => void;
|
|
|
|
onChange: (date?: Date) => void;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -22,6 +23,7 @@ class DateTimePicker extends React.PureComponent<PropsType> {
|
|
|
|
const inputProps = {
|
|
|
|
const inputProps = {
|
|
|
|
placeholder: this.props.placeholder,
|
|
|
|
placeholder: this.props.placeholder,
|
|
|
|
readOnly: true,
|
|
|
|
readOnly: true,
|
|
|
|
|
|
|
|
disabled: this.props.disabled,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Datetime
|
|
|
|
<Datetime
|
|
|
|