Add different forms

This commit is contained in:
abhay-raizada
2024-06-17 15:22:27 +05:30
parent 6720585cf5
commit a1df7afb0e
4 changed files with 408 additions and 370 deletions

View File

@@ -66,7 +66,7 @@ export const PatientForm: React.FC<PatientFormProps> = ({
modal
mode={'date'}
open={openDate}
date={new Date(form.date_of_birth || '01-01-1990')}
date={new Date(form.date_of_birth || '01-01-1999')}
onCancel={() => setOpenDate(false)}
onConfirm={(date: Date) => {
handleTextChange('date_of_birth', date.toDateString());