fix: forum
deskripsi: - fix use server menjadi API pada repot posting dan komentar
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
import { Forum_DetailReportKomentar } from "@/app_modules/forum";
|
||||
import forum_funGetOneReportKomentarById from "@/app_modules/forum/fun/get/get_one_report_komentar_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const komentarId = params.id;
|
||||
const dataKomentar = await forum_funGetOneReportKomentarById({ komentarId: komentarId });
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Forum_DetailReportKomentar dataKomentar={dataKomentar as any} />
|
||||
<Forum_DetailReportKomentar />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import { Forum_DetailReportPosting } from "@/app_modules/forum";
|
||||
import forum_funGetOneReportedPostingById from "@/app_modules/forum/fun/get/get_one_posting_reported_by_id";
|
||||
|
||||
export default async function Page({params}: {params: {id: string}}) {
|
||||
const postingId = params.id
|
||||
const dataPosting = await forum_funGetOneReportedPostingById({postingId: postingId})
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Forum_DetailReportPosting dataPosting={dataPosting} />
|
||||
<Forum_DetailReportPosting />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user