Fix /create date input

This commit is contained in:
Ian Philips 2022-07-18 15:01:50 -06:00
parent f2a16afc90
commit e2a72dd0a2

View File

@ -379,12 +379,10 @@ export function NewContract(props: {
type={'date'} type={'date'}
className="input input-bordered mt-4" className="input input-bordered mt-4"
onClick={(e) => e.stopPropagation()} onClick={(e) => e.stopPropagation()}
onChange={(e) => onChange={(e) => setCloseDate(e.target.value)}
setCloseDate(dayjs(e.target.value).format('YYYY-MM-DD') || '')
}
min={Date.now()} min={Date.now()}
disabled={isSubmitting} disabled={isSubmitting}
value={dayjs(closeDate).format('YYYY-MM-DD')} value={closeDate}
/> />
<input <input
type={'time'} type={'time'}