Create Add Pharmacy Modal

This commit is contained in:
abhay-raizada
2024-08-12 17:41:39 +05:30
parent 26e9a80275
commit 605b89c578
8 changed files with 347 additions and 232 deletions

View File

@@ -28,67 +28,63 @@ export const AddressForm: React.FC<AddressFormProps> = ({
};
return (
<Section title="Address">
<View>
<View>
<View>
<Text style={TextTheme}>Address Line 1</Text>
<TextInput
style={styles.input}
placeholder="Enter street"
value={form.address_line_1}
placeholderTextColor="white"
onChangeText={(text: string) =>
handleTextChange('address_line_1', text)
}
/>
</View>
<View>
<Text style={TextTheme}>City</Text>
<TextInput
style={styles.input}
placeholder="Enter city"
value={form.city}
placeholderTextColor="white"
onChangeText={(text: string) => handleTextChange('city', text)}
/>
</View>
<View>
<Text style={TextTheme}>State Provice</Text>
<TextInput
style={styles.input}
placeholder="enter state..."
value={form.state_province}
placeholderTextColor="white"
onChangeText={(text: string) =>
handleTextChange('state_province', text)
}
/>
</View>
<View>
<Text style={TextTheme}>Postal Code</Text>
<TextInput
style={styles.input}
placeholder="Enter postal code..."
value={form.postal_code}
placeholderTextColor="white"
onChangeText={(text: string) =>
handleTextChange('postal_code', text)
}
/>
</View>
<View>
<Text style={TextTheme}>Country Code</Text>
<TextInput
style={styles.input}
placeholder="Enter Country Code..."
value={form.country_code}
placeholderTextColor="white"
onChangeText={(text: string) =>
handleTextChange('country_code', text)
}
/>
</View>
<Text style={TextTheme}>Address Line 1</Text>
<TextInput
style={styles.input}
placeholder="Enter street"
value={form.address_line_1}
placeholderTextColor="white"
onChangeText={(text: string) =>
handleTextChange('address_line_1', text)
}
/>
</View>
</Section>
<View>
<Text style={TextTheme}>City</Text>
<TextInput
style={styles.input}
placeholder="Enter city"
value={form.city}
placeholderTextColor="white"
onChangeText={(text: string) => handleTextChange('city', text)}
/>
</View>
<View>
<Text style={TextTheme}>State Provice</Text>
<TextInput
style={styles.input}
placeholder="enter state..."
value={form.state_province}
placeholderTextColor="white"
onChangeText={(text: string) =>
handleTextChange('state_province', text)
}
/>
</View>
<View>
<Text style={TextTheme}>Postal Code</Text>
<TextInput
style={styles.input}
placeholder="Enter postal code..."
value={form.postal_code}
placeholderTextColor="white"
onChangeText={(text: string) => handleTextChange('postal_code', text)}
/>
</View>
<View>
<Text style={TextTheme}>Country Code</Text>
<TextInput
style={styles.input}
placeholder="Enter Country Code..."
value={form.country_code}
placeholderTextColor="white"
onChangeText={(text: string) =>
handleTextChange('country_code', text)
}
/>
</View>
</View>
);
};