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 <TextInput
style={styles.input} style={styles.input}
placeholder="Enter directions" placeholder="Enter directions"
value={form.refills} value={form.directions}
placeholderTextColor="white" placeholderTextColor="white"
onChangeText={(text: string) => handleTextChange('directions', text)} onChangeText={(text: string) => handleTextChange('directions', text)}
/> />

View File

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

View File

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