Fix typos, bugs

This commit is contained in:
Abhay
2025-01-06 11:52:09 +05:30
parent 58f145859a
commit d0dac925e9
3 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ export const MedicineForm: React.FC<MedicineFormProps> = ({
<TextInput
style={styles.input}
placeholder="Enter directions"
value={form.refills}
value={form.directions}
placeholderTextColor="white"
onChangeText={(text: string) => handleTextChange('directions', text)}
/>

View File

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

View File

@@ -176,7 +176,7 @@ export const PrescriptionCreator = () => {
<Section title="Address" collapsible={true}>
<AddressForm nestedFormCallback={nestedFormCallback} />
</Section>
<Section title="Medicine" collapsible={true}>
<Section title="Medication" collapsible={true}>
<MedicineForm nestedFormCallback={nestedFormCallback} />
</Section>
<View style={{margin: 15}}>