Fix tampilan admin dan notifikasi to admin
# fix - Notifikasi report posting _ Realtime notifikasi ## Issuee: Cooming soon saat report komentar langsung menuju tablenya
This commit is contained in:
26
src/app/dev/admin/forum/detail/[id]/page.tsx
Normal file
26
src/app/dev/admin/forum/detail/[id]/page.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import { AdminForum_LihatSemuaKomentar } from "@/app_modules/admin/forum";
|
||||
import adminForum_countKomentarByPostingId from "@/app_modules/admin/forum/fun/count/fun_count_komentar_by_id";
|
||||
import { adminForum_getListKomentarById } from "@/app_modules/admin/forum/fun/get/get_list_komentar_by_id";
|
||||
import { adminForum_getOnePostingById } from "@/app_modules/admin/forum/fun/get/get_one_posting_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let postingId = params.id;
|
||||
|
||||
const listKomentar = await adminForum_getListKomentarById({
|
||||
postingId: postingId,
|
||||
page: 1,
|
||||
});
|
||||
const dataPosting = await adminForum_getOnePostingById(postingId);
|
||||
const countKomentar = await adminForum_countKomentarByPostingId({postingId: postingId})
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_LihatSemuaKomentar
|
||||
listKomentar={listKomentar as any}
|
||||
dataPosting={dataPosting as any}
|
||||
countKomentar={countKomentar}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user