some style adjustments

This commit is contained in:
2025-07-08 12:29:15 +05:00
parent 381bd5fa32
commit cd8b129f16
5 changed files with 86 additions and 40 deletions

View File

@@ -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',