some bug fixed
This commit is contained in:
@@ -38,6 +38,8 @@ interface PaymentDetails {
|
||||
contributionAmount: number;
|
||||
totalDueWithLateFee: number;
|
||||
participants: Participant[];
|
||||
nextCycleStart: string;
|
||||
cycleCompleted: boolean;
|
||||
}
|
||||
|
||||
type PaymentStackParamList = { Payments: { groupId: string } };
|
||||
@@ -253,7 +255,9 @@ const Payments: React.FC = () => {
|
||||
</View>
|
||||
</View>
|
||||
<Text style={styles.sectionTitle}>Participants</Text>
|
||||
{paymentDetails.participants.map(renderParticipant)}
|
||||
{ paymentDetails?.cycleCompleted &&
|
||||
<Text style={{ marginLeft: 20, marginBottom: 10, color: '#6c757d' }}>Next Cycle from : {paymentDetails?.nextCycleStart}</Text>
|
||||
}{paymentDetails.participants.map(renderParticipant)}
|
||||
</>
|
||||
)}
|
||||
</ScrollView>
|
||||
|
||||
Reference in New Issue
Block a user