okay, good

This commit is contained in:
2025-07-04 20:37:01 +05:00
parent cfa0b840ed
commit 11d50c51ef

View File

@@ -32,30 +32,33 @@ const CreateLoanRemainingOrderScreen = () => {
return ( return (
<SafeAreaView style={styles.container}> <SafeAreaView style={styles.container}>
<StatusBar style="dark" /> <StatusBar style="dark" />
<TouchableOpacity style={styles.backBtn} onPress={() => navigation.goBack()}>
<Ionicons name="arrow-back" size={24} color={COLORS.textPrimary} />
</TouchableOpacity>
<Text style={styles.title}>Täze sargyt</Text> <View style={styles.inner}>
<TouchableOpacity style={styles.backBtn} onPress={() => navigation.goBack()}>
<Ionicons name="arrow-back" size={24} color={COLORS.textPrimary} />
</TouchableOpacity>
<Input <Text style={styles.title}>Täze sargyt</Text>
label="Account number"
placeholder="1420..."
value={accountNumber}
onChangeText={setAccountNumber}
keyboardType="numeric"
autoCapitalize="none"
autoCorrect={false}
returnKeyType="done"
/>
<TouchableOpacity style={styles.submitBtn} onPress={handleSubmit} disabled={loading}> <Input
{loading ? ( label="Karz hasaby"
<ActivityIndicator color={COLORS.white} /> placeholder="1420..."
) : ( value={accountNumber}
<Text style={styles.submitText}>Ýatda sakla</Text> onChangeText={setAccountNumber}
)} keyboardType="numeric"
</TouchableOpacity> autoCapitalize="none"
autoCorrect={false}
returnKeyType="done"
/>
<TouchableOpacity style={styles.submitBtn} onPress={handleSubmit} disabled={loading}>
{loading ? (
<ActivityIndicator color={COLORS.white} />
) : (
<Text style={styles.submitText}>Ýatda sakla</Text>
)}
</TouchableOpacity>
</View>
</SafeAreaView> </SafeAreaView>
); );
}; };
@@ -64,9 +67,12 @@ const styles = StyleSheet.create({
container: { container: {
flex: 1, flex: 1,
backgroundColor: COLORS.backgroundSecondary, backgroundColor: COLORS.backgroundSecondary,
paddingHorizontal: 24,
paddingTop: 40, paddingTop: 40,
}, },
inner: {
flex: 1,
paddingHorizontal: 24,
},
backBtn: { backBtn: {
marginBottom: 24, marginBottom: 24,
}, },