some style adjustments
This commit is contained in:
@@ -52,7 +52,9 @@ const SelectInput = ({
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{label && <Text style={styles.label}>{label}</Text>}
|
||||
{label && (
|
||||
<Text style={[styles.label, typeof label === 'string' && label.trim().startsWith('*') && styles.requiredLabel]}>{label}</Text>
|
||||
)}
|
||||
<TouchableOpacity
|
||||
style={[styles.selectBox, disabled && styles.disabled, error && styles.error]}
|
||||
onPress={openModal}
|
||||
@@ -108,6 +110,9 @@ const styles = StyleSheet.create({
|
||||
color: COLORS.textPrimary,
|
||||
marginBottom: 8,
|
||||
},
|
||||
requiredLabel: {
|
||||
color: COLORS.error,
|
||||
},
|
||||
selectBox: {
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
|
||||
Reference in New Issue
Block a user