Correction de bugs Historique de paiement

This commit is contained in:
Brice Zele 2022-05-11 11:17:15 +01:00
parent 9c7161d08b
commit ee37cb177b
3 changed files with 6 additions and 6 deletions

View File

@ -1506,6 +1506,7 @@ const SaisirFeuilleSoinScreen = ({
}]); }]);
} else { } else {
setAssure(item); setAssure(item);
setPhoto(item.user.identification.user_image);
setBeneficiary(null); setBeneficiary(null);
setStatutPatient(1); setStatutPatient(1);
setModalListAssure(false); setModalListAssure(false);
@ -1544,6 +1545,7 @@ const SaisirFeuilleSoinScreen = ({
} else { } else {
setAssure(item); setAssure(item);
setBeneficiary(beneficiary); setBeneficiary(beneficiary);
setPhoto(beneficiary.profile_image);
setStatutPatient(0); setStatutPatient(0);
setModalListAssure(false); setModalListAssure(false);
setFieldValue( setFieldValue(
@ -1714,7 +1716,6 @@ const SaisirFeuilleSoinScreen = ({
} }
}, },
}); });
const onNext = () => { const onNext = () => {
console.log("currentStep", currentStep); console.log("currentStep", currentStep);
switch (currentStep) { switch (currentStep) {
@ -1818,7 +1819,7 @@ const SaisirFeuilleSoinScreen = ({
<View> <View>
<View style={{alignItems: 'center'}}> <View style={{alignItems: 'center'}}>
<Image source={photo === null ? require('./../../../datas/img/users/man.png') : {uri: photo}} <Image source={photo === null ? require('./../../../datas/img/users/man.png') : {uri: photo}}
style={{width: 92, height: 92}}/> style={{width: 150, height: 150, borderRadius: 75}}/>
</View> </View>
<TextInput <TextInput
style={{marginTop: 10}} style={{marginTop: 10}}

View File

@ -214,14 +214,13 @@ const HistoriqueNanoSanteUserScreen = ({
return moment(re).fromNow(); return moment(re).fromNow();
} }
const renderPaymentDetail = () => ( const renderPaymentDetail = () => (
<ScrollView style={{flex: 1}}>
<View style={[styles.containModal, {backgroundColor: Color.containerBackgroundColor}]}> <View style={[styles.containModal, {backgroundColor: Color.containerBackgroundColor}]}>
<Modal <Modal
isVisible={modalPaymentDetail} isVisible={modalPaymentDetail}
onSwipeComplete={() => { onSwipeComplete={() => {
setModalPaymentDetail(false); setModalPaymentDetail(false);
}} }}
swipeDirection={['down']} swipeDirection={null}
style={styles.bottomModal}> style={styles.bottomModal}>
<View <View
style={[ style={[
@ -266,7 +265,6 @@ const HistoriqueNanoSanteUserScreen = ({
</View> </View>
</Modal> </Modal>
</View> </View>
</ScrollView>
) )
const renderModalHistoryDetail = () => ( const renderModalHistoryDetail = () => (
@ -1165,6 +1163,7 @@ const styles = StyleSheet.create({
}, },
contentFilterBottom: { contentFilterBottom: {
width: "100%", width: "100%",
maxHeight: '90%',
borderTopLeftRadius: 8, borderTopLeftRadius: 8,
borderTopRightRadius: 8, borderTopRightRadius: 8,
paddingHorizontal: 20 paddingHorizontal: 20

View File

@ -755,7 +755,7 @@
"NEXT_ECHEANCE": "Prochaine échéance", "NEXT_ECHEANCE": "Prochaine échéance",
"MONTANT_RESTANT": "Montant restant", "MONTANT_RESTANT": "Montant restant",
"LAST_PAYMENT": "Dernier paiement", "LAST_PAYMENT": "Dernier paiement",
"AMOUNT_PER_SPLIT": "Montant par échéance", "AMOUNT_PER_SPLIT": "Montant min. par échéance",
"ETAT_ASSURANCE": "Etat assurance", "ETAT_ASSURANCE": "Etat assurance",
"PRIME_BASE": "Prime de base", "PRIME_BASE": "Prime de base",
"PAYMENTS": "Paiements", "PAYMENTS": "Paiements",