Finalized read only job. Logic to detmerine what is read only outstanding. BOD-409
This commit is contained in:
@@ -6,7 +6,7 @@ import { TimePicker } from "antd";
|
||||
import moment from "moment";
|
||||
//To be used as a form element only.
|
||||
|
||||
const DateTimePicker = ({ value, onChange, onBlur }, ref) => {
|
||||
const DateTimePicker = ({ value, onChange, onBlur, ...restProps }, ref) => {
|
||||
// const handleChange = (newDate) => {
|
||||
// if (value !== newDate && onChange) {
|
||||
// onChange(newDate);
|
||||
@@ -15,9 +15,15 @@ const DateTimePicker = ({ value, onChange, onBlur }, ref) => {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<FormDatePicker value={value} onBlur={onBlur} onChange={onChange} />
|
||||
<FormDatePicker
|
||||
{...restProps}
|
||||
value={value}
|
||||
onBlur={onBlur}
|
||||
onChange={onChange}
|
||||
/>
|
||||
|
||||
<TimePicker
|
||||
{...restProps}
|
||||
value={value ? moment(value) : null}
|
||||
onChange={onChange}
|
||||
showSecond={false}
|
||||
|
||||
Reference in New Issue
Block a user