Donation:

Fix:
- Edit story & bank account
- List beranda dan detailnya

- Tampilan penggalang dana

### No Issue
This commit is contained in:
2025-10-07 15:50:20 +08:00
parent 53cdca21fc
commit 7c82e8b588
8 changed files with 390 additions and 56 deletions

View File

@@ -91,11 +91,32 @@ export async function apiDonationUpdateData({
category: "edit-donation" | "edit-story" | "edit-bank-account";
}) {
try {
const response = await apiConfig.put(`/mobile/donation/${id}?category=${category}`, {
data: data,
});
const response = await apiConfig.put(
`/mobile/donation/${id}?category=${category}`,
{
data: data,
}
);
return response.data;
} catch (error) {
throw error;
}
}
export async function apiDonationGetAll() {
try {
const response = await apiConfig.get(`/mobile/donation`);
return response.data;
} catch (error) {
throw error;
}
}
export async function apiDonationFundrising({id}: {id: string}) {
try {
const response = await apiConfig.get(`/mobile/donation/${id}/fundrising`);
return response.data;
} catch (error) {
throw error;
}
}