Finalized read only job. Logic to detmerine what is read only outstanding. BOD-409

This commit is contained in:
Patrick Fic
2020-09-28 14:45:31 -07:00
parent 3ee003000d
commit cb412f377e
6 changed files with 107 additions and 79 deletions

View File

@@ -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}