Alur pembayaran donasi
# feat - Tampilan invoce - Proses acc admin - Transaksi berhasil # Issue: Hitungan progres masih salah
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { MainDonasi } from "@/app_modules/donasi";
|
||||
import { Donasi_getListBeranda } from "@/app_modules/donasi/fun/get/get_list_beranda";
|
||||
|
||||
export default async function Page() {
|
||||
return <MainDonasi/>
|
||||
const listDonasi = await Donasi_getListBeranda()
|
||||
// console.log(listDonasi)
|
||||
return <MainDonasi listDonasi={listDonasi as any}/>
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
import { DonasiSayaDonasi } from "@/app_modules/donasi";
|
||||
import { Donasi_getInvoiceByAuthorId } from "@/app_modules/donasi/fun/get/get_list_invoice_by_author_id";
|
||||
import { getToken_UserId } from "@/app_modules/fun/get_user_token";
|
||||
|
||||
export default async function Page() {
|
||||
return <DonasiSayaDonasi/>
|
||||
}
|
||||
const authorId = await getToken_UserId();
|
||||
const listInvoice = await Donasi_getInvoiceByAuthorId(authorId);
|
||||
|
||||
return <DonasiSayaDonasi listInvoice={listInvoice as any} />;
|
||||
}
|
||||
|
||||
@@ -4,14 +4,16 @@ import { getToken_UserId } from "@/app_modules/fun/get_user_token";
|
||||
|
||||
export default async function Page() {
|
||||
const authorId = await getToken_UserId();
|
||||
const listPublish = await Donasi_getByStatus(authorId, "1")
|
||||
const listReview = await Donasi_getByStatus(authorId, "2");
|
||||
const listDraft = await Donasi_getByStatus(authorId, "3");
|
||||
const listReject = await Donasi_getByStatus(authorId, "4")
|
||||
|
||||
|
||||
// console.log(listReview)
|
||||
|
||||
return (
|
||||
<>
|
||||
<PostingDonasi listReview={listReview} listDraft={listDraft} />
|
||||
<PostingDonasi listPublish={listPublish} listReview={listReview} listDraft={listDraft} listReject={listReject} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user