loan order store not bad

This commit is contained in:
2025-07-08 11:42:33 +05:00
parent 7e6a0846dd
commit 381bd5fa32
3 changed files with 85 additions and 49 deletions

View File

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