mirror of
https://github.com/abhay-raizada/PeerScribe.git
synced 2026-04-26 16:24:03 +00:00
Create Add Pharmacy Modal
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user