Fix: Cookies
Deksripsi: - Perbaikan cookies untuk server
This commit is contained in:
@@ -25,7 +25,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<Forum_MainDetail
|
||||
dataPosting={dataPosting as any}
|
||||
listKomentar={listKomentar as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
countKomentar={countKomentar}
|
||||
/>
|
||||
</>
|
||||
|
||||
@@ -9,7 +9,7 @@ export default async function Layout({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const dataAuthor = await user_getOneByUserId(userLoginId);
|
||||
const dataAuthor = await user_getOneByUserId(userLoginId as string);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -8,7 +8,10 @@ export default async function Page() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_Beranda listForum={listForum as any} userLoginId={userLoginId} />
|
||||
<Forum_Beranda
|
||||
listForum={listForum as any}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<>
|
||||
<Forum_ReportKomentarLainnya
|
||||
komentarId={komentarId}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -9,7 +9,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<>
|
||||
<Forum_ReportPostingLainnya
|
||||
postingId={postingId}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -13,7 +13,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<Forum_ReportPosting
|
||||
postingId={postingId}
|
||||
listReport={listReport as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user