fix event button and list peserta
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import { Event_DetailDraft } from "@/app_modules/event";
|
||||
import { event_getOneById } from "@/app_modules/event/fun/get/get_one_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const eventId = params.id;
|
||||
const dataEvent = await event_getOneById(eventId);
|
||||
export default async function Page() {
|
||||
return (
|
||||
<Event_DetailDraft eventId={eventId as any} dataEvent={dataEvent as any} />
|
||||
<Event_DetailDraft />
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,18 +1,9 @@
|
||||
import { Event_DetailKontribusi } from "@/app_modules/event";
|
||||
import { Event_countTotalPesertaById } from "@/app_modules/event/fun/count/count_total_peserta_by_id";
|
||||
import { Event_getListPesertaById } from "@/app_modules/event/fun/get/get_list_peserta_by_id";
|
||||
import { event_getOneById } from "@/app_modules/event/fun/get/get_one_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let eventId = params.id;
|
||||
// const dataEvent = await event_getOneById(eventId);
|
||||
// const listKontributor = await Event_getListPesertaById(eventId);
|
||||
const totalPeserta = await Event_countTotalPesertaById(eventId)
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Event_DetailKontribusi
|
||||
totalPeserta={totalPeserta}
|
||||
/>
|
||||
<Event_DetailKontribusi />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
import Event_DaftarPeserta from '@/app_modules/event/detail/peserta';
|
||||
import { Event_countTotalPesertaById } from '@/app_modules/event/fun/count/count_total_peserta_by_id';
|
||||
import { event_getOneById } from '@/app_modules/event/fun/get/get_one_by_id';
|
||||
import React from 'react';
|
||||
|
||||
export default async function Page() {
|
||||
// const dataEvent = await event_getOneById(eventId);
|
||||
// const totalPeserta = await Event_countTotalPesertaById(eventId);
|
||||
|
||||
return (
|
||||
<Event_DaftarPeserta />
|
||||
)
|
||||
|
||||
@@ -1,19 +1,5 @@
|
||||
import { Event_DetailPublish } from "@/app_modules/event";
|
||||
import { Event_countTotalPesertaById } from "@/app_modules/event/fun/count/count_total_peserta_by_id";
|
||||
import { Event_getListPesertaById } from "@/app_modules/event/fun/get/get_list_peserta_by_id";
|
||||
import { event_getOneById } from "@/app_modules/event/fun/get/get_one_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let eventId = params.id;
|
||||
const dataEvent = await event_getOneById(eventId);
|
||||
const totalPeserta = await Event_countTotalPesertaById(eventId);
|
||||
|
||||
|
||||
return (
|
||||
<Event_DetailPublish
|
||||
dataEvent={dataEvent as any}
|
||||
totalPeserta={totalPeserta}
|
||||
eventId={eventId}
|
||||
/>
|
||||
);
|
||||
export default async function Page() {
|
||||
return <Event_DetailPublish />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user