|
@@ -323,10 +323,12 @@ const BasicInfoForm: React.FC<BasicInfoFormProps> = ({
|
|
|
required={registerFormFields.patient_dob.required}
|
|
required={registerFormFields.patient_dob.required}
|
|
|
validateTrigger={registerFormFields.patient_dob.trigger}
|
|
validateTrigger={registerFormFields.patient_dob.trigger}
|
|
|
rules={registerFormFields.patient_dob.validation}
|
|
rules={registerFormFields.patient_dob.validation}
|
|
|
|
|
+ initialValue={dayjs()}
|
|
|
>
|
|
>
|
|
|
<DatePicker
|
|
<DatePicker
|
|
|
format="YYYY-MM-DD"
|
|
format="YYYY-MM-DD"
|
|
|
style={{ width: '100%' }}
|
|
style={{ width: '100%' }}
|
|
|
|
|
+ defaultValue={dayjs()}
|
|
|
disabledDate={(current) => current && current > dayjs().endOf('day')}
|
|
disabledDate={(current) => current && current > dayjs().endOf('day')}
|
|
|
/>
|
|
/>
|
|
|
</Form.Item>
|
|
</Form.Item>
|