Integrasi API: Donation & Admin Donation

Fix:
- app/(application)/(user)/donation/[id]/fund-disbursement.tsx
- app/(application)/(user)/donation/[id]/list-of-donatur.tsx
- app/(application)/admin/donation/[id]/[status]/index.tsx
- app/(application)/admin/donation/[id]/detail-disbursement-of-funds.tsx
- app/(application)/admin/donation/[id]/disbursement-of-funds.tsx
- app/(application)/admin/donation/[id]/list-disbursement-of-funds.tsx
- service/api-admin/api-admin-donation.ts
- service/api-client/api-donation.ts
- utils/pickFile.ts: Sudah bisa memilih ukuran crop tapi hanya di android

### No issue
This commit is contained in:
2025-10-29 17:35:18 +08:00
parent 1e1b18f860
commit b3209dc7ee
9 changed files with 545 additions and 119 deletions

View File

@@ -255,3 +255,16 @@ export async function apiDonationDeleteNews({ id }: { id: string }) {
throw error;
}
}
export async function apiDonationDisbursementOfFundsListById({
id,
}: {
id: string;
}) {
try {
const response = await apiConfig.get(`/mobile/donation/${id}/disbursement`);
return response.data;
} catch (error) {
throw error;
}
}