loan order store not bad
This commit is contained in:
@@ -29,6 +29,7 @@ const SelectInput = ({
|
||||
onValueChange,
|
||||
placeholder = 'Select',
|
||||
disabled = false,
|
||||
error = false,
|
||||
}) => {
|
||||
const [modalVisible, setModalVisible] = useState(false);
|
||||
|
||||
@@ -53,7 +54,7 @@ const SelectInput = ({
|
||||
<View style={styles.container}>
|
||||
{label && <Text style={styles.label}>{label}</Text>}
|
||||
<TouchableOpacity
|
||||
style={[styles.selectBox, disabled && styles.disabled]}
|
||||
style={[styles.selectBox, disabled && styles.disabled, error && styles.error]}
|
||||
onPress={openModal}
|
||||
activeOpacity={0.7}
|
||||
>
|
||||
@@ -128,6 +129,9 @@ const styles = StyleSheet.create({
|
||||
backgroundColor: COLORS.gray[100],
|
||||
opacity: 0.6,
|
||||
},
|
||||
error: {
|
||||
borderColor: COLORS.error,
|
||||
},
|
||||
modalOverlay: {
|
||||
flex: 1,
|
||||
backgroundColor: 'rgba(0,0,0,0.3)',
|
||||
|
||||
Reference in New Issue
Block a user