fixed some ui

This commit is contained in:
Abin Toppo
2026-03-26 15:07:08 +05:30
parent a98e0b6cdd
commit 585989eac2
24 changed files with 473 additions and 415 deletions
+5 -4
View File
@@ -22,7 +22,7 @@ interface JoinedGroup {
currentParticipants: number;
contributionAmount: number;
cycleType: 'MONTHLY' | 'WEEKLY' | 'QUARTERLY' | 'CUSTOM';
status: 'ACTIVE' | 'PENDING' | 'COMPLETED';
status: 'ACTIVE' | 'PENDING' | 'COMPLETED'| 'APPROVED';
}
interface JoinedGroupCardProps {
@@ -42,9 +42,10 @@ const formatDate = (dateStr: string | null): string => {
return `${dayNum} ${months[monthIndex]} ${year}`;
};
export const JoinedGroupCard: FC<JoinedGroupCardProps> = ({ item }) => {
export const JoinedGroupCard: FC<JoinedGroupCardProps> = ({ item }:any) => {
const theme = useTheme();
const navigation = useNavigation<any>();
console.log("item",item)
const { data: payableRes } = useFetch<any>(`${CONTRIBUTE}${item.id}/calculate-contribution`);
const payable = payableRes?.data;
@@ -101,8 +102,8 @@ export const JoinedGroupCard: FC<JoinedGroupCardProps> = ({ item }) => {
</Text>
</View>
<View style={styles.infoItem}>
<Text style={[styles.infoLabel, { color: theme.colors.textMuted }]}>Type</Text>
<Text style={[styles.infoValue, { color: theme.colors.textPrimary }]}>{item.cycleType}</Text>
<Text style={[styles.infoLabel, { color: theme.colors.textMuted }]}>Duration</Text>
<Text style={[styles.infoValue, { color: theme.colors.textPrimary }]}>{`${item?.cycleType} (${item?.customCycleDays} days)`}</Text>
</View>
</View>