loan order screen update
This commit is contained in:
@@ -43,8 +43,8 @@ const LoanOrdersScreen = () => {
|
||||
};
|
||||
|
||||
const renderItem = ({ item }) => {
|
||||
const passportLine = `Pasport: ${item.passport_serie} ${item.passport_id}`;
|
||||
const amountLine = `Karz mukdary:`;
|
||||
const amountLine = `Karz mukdary: `;
|
||||
const amount = (item.loan_amount + ' TMT') || '-';
|
||||
const created = item.created_at ? new Date(item.created_at).toLocaleDateString() : '';
|
||||
|
||||
return (
|
||||
@@ -53,9 +53,11 @@ const LoanOrdersScreen = () => {
|
||||
<Text style={styles.circleText}>{item.id}</Text>
|
||||
</View>
|
||||
<View style={styles.cardContent}>
|
||||
<Text style={styles.passportText}>{passportLine}</Text>
|
||||
<Text style={styles.accountLabel}>{amountLine}</Text>
|
||||
<Text style={styles.accountValue}>{item.loan_amount || '-'}</Text>
|
||||
<Text style={styles.passportText}>{item.loan_type}</Text>
|
||||
<Text style={styles.accountLabel}>{amountLine}
|
||||
<Text style={{ color: COLORS.textPrimary }}>{amount}</Text>
|
||||
</Text>
|
||||
|
||||
<Text style={styles.dateText}>{created}</Text>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
@@ -125,7 +127,7 @@ const styles = StyleSheet.create({
|
||||
passportText: { fontWeight: '700', color: COLORS.textPrimary, marginBottom: 4 },
|
||||
accountLabel: { color: COLORS.textSecondary, fontSize: 14 },
|
||||
accountValue: { color: COLORS.textPrimary, marginBottom: 4 },
|
||||
dateText: { color: COLORS.textSecondary, fontSize: 12 },
|
||||
dateText: { color: COLORS.textSecondary, fontSize: 12, textAlign: 'right' },
|
||||
emptyContainer: { flex: 1, justifyContent: 'center', alignItems: 'center' },
|
||||
emptyText: { fontSize: 16, color: COLORS.textSecondary },
|
||||
fab: {
|
||||
|
||||
Reference in New Issue
Block a user