fix: forum
deskripsi: - metode pengambilan user id dari use server menjadi menggunakan metode API
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { Forum_Create } from "@/app_modules/forum";
|
||||
import Forum_NewCreate from "@/app_modules/forum/create/new_create";
|
||||
import { Forum_V3_Create } from "@/app_modules/forum/create/V3_create";
|
||||
|
||||
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
return (
|
||||
<>
|
||||
{/* <Forum_Create /> */}
|
||||
{/* <Forum_NewCreate/> */}
|
||||
<Forum_V3_Create userLoginId={userLoginId as string}/>
|
||||
<Forum_V3_Create />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import Forum_V3_MainDetail from "@/app_modules/forum/detail/v3_main_detail";
|
||||
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
return (
|
||||
<>
|
||||
<Forum_V3_MainDetail userLoginId={userLoginId as string} />
|
||||
<Forum_V3_MainDetail />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import { LayoutForum_EditPosting } from "@/app_modules/forum";
|
||||
import React from "react";
|
||||
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { Forum_EditPosting } from "@/app_modules/forum";
|
||||
import Forum_V3_EditPosting from "@/app_modules/forum/edit/posting/V3_edit_posting";
|
||||
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
return (
|
||||
<>
|
||||
{/* <Forum_EditPosting /> */}
|
||||
<Forum_V3_EditPosting userLoginId={userLoginId as string}/>
|
||||
<Forum_V3_EditPosting />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { Forum_Forumku } from "@/app_modules/forum";
|
||||
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_Forumku userLoginId={userLoginId as any} />
|
||||
<Forum_Forumku />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { LayoutForum_Main } from "@/app_modules/forum";
|
||||
import React from "react";
|
||||
|
||||
@@ -7,11 +6,9 @@ export default async function Layout({
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutForum_Main userLoginId={userLoginId}>{children}</LayoutForum_Main>
|
||||
<LayoutForum_Main>{children}</LayoutForum_Main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { Forum_Beranda } from "@/app_modules/forum";
|
||||
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_Beranda userLoginId={userLoginId as string} />
|
||||
<Forum_Beranda />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { Forum_ReportKomentarLainnya } from "@/app_modules/forum";
|
||||
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_ReportKomentarLainnya
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
<Forum_ReportKomentarLainnya />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { Forum_ReportKomentar } from "@/app_modules/forum";
|
||||
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_ReportKomentar userLoginId={userLoginId as any} />
|
||||
<Forum_ReportKomentar />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { Forum_ReportPostingLainnya } from "@/app_modules/forum";
|
||||
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_ReportPostingLainnya userLoginId={userLoginId as string} />
|
||||
<Forum_ReportPostingLainnya />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import { LayoutForum_ReportPosting } from "@/app_modules/forum";
|
||||
import React from "react";
|
||||
|
||||
|
||||
@@ -1,15 +1,9 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { Forum_ReportPosting } from "@/app_modules/forum";
|
||||
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_ReportPosting
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
<Forum_ReportPosting />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user