Donation:
Add: - service/api-client/api-donation.ts Fix: - service/api-client/api-master.ts : tambah master donasi - app/(application)/(user)/donation/create.tsx - app/(application)/(user)/donation/create-story.tsx ### No issue
This commit is contained in:
@@ -135,3 +135,19 @@ export async function apiMasterBank() {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
export async function apiMasterDonation({
|
||||
category,
|
||||
}: {
|
||||
category: "category" | "duration" | "";
|
||||
}) {
|
||||
const selectCategory = category ? `?category=${category}` : "";
|
||||
try {
|
||||
const response = await apiConfig.get(
|
||||
`/mobile/master/donation${selectCategory}`
|
||||
);
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user