From 9ee6dea980a71744622042ccea5e86ede293cccb Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 8 Jul 2025 17:15:09 +0500 Subject: [PATCH] loans done --- src/screens/Loan/CreateLoanOrderScreen.js | 8 +++---- src/screens/Loan/LoanOrderDetailsScreen.js | 25 +++++++++------------- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/src/screens/Loan/CreateLoanOrderScreen.js b/src/screens/Loan/CreateLoanOrderScreen.js index b5bf3d4..862fc22 100644 --- a/src/screens/Loan/CreateLoanOrderScreen.js +++ b/src/screens/Loan/CreateLoanOrderScreen.js @@ -300,9 +300,9 @@ const CreateLoanOrderScreen = () => { } setLoading(false); if (res.success) { - Alert.alert('Success', res.message || 'Order created', [{ text: 'OK', onPress: () => navigation.goBack() }]); + Alert.alert('Üstünlik', res.message || 'Order created', [{ text: 'OK', onPress: () => navigation.goBack() }]); } else { - Alert.alert('Error', res.error || 'Could not create'); + Alert.alert('Ýalňyşlyk', res.error || 'Could not create'); } }; @@ -350,10 +350,10 @@ const CreateLoanOrderScreen = () => { - + - + {setWorkRegion(val); setWorkProvinceId('');}} placeholder="Saýla" error={submitted && !workRegion} /> ({label:b.name,value:b.id})) : []} onValueChange={setWorkProvinceId} placeholder="Saýla" disabled={!workRegion} error={submitted && !workProvinceId} /> diff --git a/src/screens/Loan/LoanOrderDetailsScreen.js b/src/screens/Loan/LoanOrderDetailsScreen.js index cb72455..e24a409 100644 --- a/src/screens/Loan/LoanOrderDetailsScreen.js +++ b/src/screens/Loan/LoanOrderDetailsScreen.js @@ -173,12 +173,11 @@ const LoanOrderDetailsScreen = () => { {/* Applicant card info */} {order.card_number && ( <> - Kartanyň maglumatlary (Arza beriji) + Kart maglumatlary (Arza beriji) - {order.card_name && } - - {order.card_month && } - {order.card_year && } + {order.card_name && } + + {order.card_month && order.card_year && } )} @@ -189,11 +188,9 @@ const LoanOrderDetailsScreen = () => { Zamun (1) - {order.guarantor_card_name && } - {order.guarantor_card_number && } - {order.guarantor_card_month && } - {order.guarantor_card_year && } - {order.guarantor_note && } + {order.guarantor_card_name && } + {order.guarantor_card_number && } + {order.guarantor_card_month && order.guarantor_card_year && } )} @@ -204,11 +201,9 @@ const LoanOrderDetailsScreen = () => { Zamun (2) - {order.guarantor_2_card_name && } - {order.guarantor_2_card_number && } - {order.guarantor_2_card_month && } - {order.guarantor_2_card_year && } - {order.guarantor_2_note && } + {order.guarantor_2_card_name && } + {order.guarantor_2_card_number && } + {order.guarantor_2_card_month && order.guarantor_2_card_year && } )}