Fix: - app/(application)/(user)/donation/[id]/(transaction-flow)/[invoiceId]/invoice.tsx - app/(application)/(user)/donation/[id]/index.tsx - app/(application)/admin/donation/[id]/[status]/index.tsx - app/(application)/admin/donation/[id]/[status]/transaction-detail.tsx - app/(application)/admin/donation/[id]/list-of-donatur.tsx - components/Select/SelectCustom.tsx - context/AuthContext.tsx - screens/Donation/BoxPublish.tsx - screens/Donation/ProgressSection.tsx - service/api-admin/api-admin-donation.ts ### NO Issue
83 lines
2.4 KiB
TypeScript
83 lines
2.4 KiB
TypeScript
import {
|
|
ClickableCustom,
|
|
Grid,
|
|
ProgressCustom,
|
|
Spacing,
|
|
TextCustom,
|
|
} from "@/components";
|
|
import { MainColor } from "@/constants/color-palet";
|
|
import { ICON_SIZE_MEDIUM } from "@/constants/constans-value";
|
|
import { Ionicons, MaterialIcons } from "@expo/vector-icons";
|
|
import { router } from "expo-router";
|
|
import { View } from "react-native";
|
|
|
|
export default function Donation_ProgressSection({
|
|
id,
|
|
progres,
|
|
}: {
|
|
id: string;
|
|
progres: number;
|
|
}) {
|
|
return (
|
|
<>
|
|
<View>
|
|
<ProgressCustom
|
|
size="lg"
|
|
value={progres}
|
|
label={progres + "%"}
|
|
animated
|
|
color="primary"
|
|
/>
|
|
<Spacing />
|
|
<Grid>
|
|
<Grid.Col span={4}>
|
|
<ClickableCustom
|
|
onPress={() => router.push(`/donation/${id}/list-of-donatur`)}
|
|
>
|
|
<View style={{ alignItems: "center" }}>
|
|
<Ionicons
|
|
name="flower-sharp"
|
|
size={ICON_SIZE_MEDIUM}
|
|
color={MainColor.yellow}
|
|
/>
|
|
<Spacing height={10} />
|
|
<TextCustom size="small">Donatur</TextCustom>
|
|
</View>
|
|
</ClickableCustom>
|
|
</Grid.Col>
|
|
<Grid.Col span={4}>
|
|
<ClickableCustom
|
|
onPress={() => router.push(`/donation/${id}/(news)/list-of-news`)}
|
|
>
|
|
<View style={{ alignItems: "center" }}>
|
|
<Ionicons
|
|
name="chatbox"
|
|
size={ICON_SIZE_MEDIUM}
|
|
color={MainColor.yellow}
|
|
/>
|
|
<Spacing height={10} />
|
|
<TextCustom size="small">Kabar Terbaru</TextCustom>
|
|
</View>
|
|
</ClickableCustom>
|
|
</Grid.Col>
|
|
<Grid.Col span={4}>
|
|
<ClickableCustom
|
|
onPress={() => router.push(`/donation/${id}/fund-disbursement`)}
|
|
>
|
|
<View style={{ alignItems: "center" }}>
|
|
<MaterialIcons
|
|
name="transfer-within-a-station"
|
|
size={ICON_SIZE_MEDIUM}
|
|
color={MainColor.yellow}
|
|
/>
|
|
<Spacing height={10} />
|
|
<TextCustom size="small">Pencairan Dana</TextCustom>
|
|
</View>
|
|
</ClickableCustom>
|
|
</Grid.Col>
|
|
</Grid>
|
|
</View>
|
|
</>
|
|
);
|
|
}
|