Fix QC
# fix - authentication - profile - pencarian user - forum ## No issue
This commit is contained in:
@@ -17,23 +17,19 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
]);
|
||||
let listMsg = await colab_getMessageByRoomId({ roomId: roomId, page: 1 });
|
||||
|
||||
// const listMessage = await colab_V2getListMessageByRoomId({
|
||||
// roomId: roomId,
|
||||
// page: 1,
|
||||
// });
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <ColabViewChat
|
||||
<ColabViewChat
|
||||
listMsg={listMsg as any}
|
||||
dataRoom={dataRoom as any}
|
||||
userLoginId={userLoginId}
|
||||
/> */}
|
||||
<Colab_GroupChatView
|
||||
/>
|
||||
|
||||
{/* <Colab_GroupChatView
|
||||
userLoginId={userLoginId}
|
||||
listMsg={listMsg}
|
||||
selectRoom={dataRoom as any}
|
||||
/>
|
||||
/> */}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,9 +8,13 @@ export default async function Page({
|
||||
children: React.ReactNode;
|
||||
params: { id: string };
|
||||
}) {
|
||||
let eventId = params.id
|
||||
let eventId = params.id;
|
||||
|
||||
return <>
|
||||
<LayoutEvent_DetailDraft eventId={eventId}>{children}</LayoutEvent_DetailDraft>;
|
||||
</>
|
||||
return (
|
||||
<>
|
||||
<LayoutEvent_DetailDraft eventId={eventId}>
|
||||
{children}
|
||||
</LayoutEvent_DetailDraft>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Event_DetailDraft } from "@/app_modules/event";
|
||||
import { Event_getOneById } from "@/app_modules/event/fun/get/get_one_by_id";
|
||||
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}}) {
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let eventId = params.id
|
||||
const dataEvent = await Event_getOneById(eventId)
|
||||
return <Event_DetailDraft dataEvent={dataEvent as any} />;
|
||||
return <Event_DetailDraft dataEvent={dataEvent as any} />
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import { forum_countPostingByAuthorId } from "@/app_modules/forum/fun/count/coun
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const authorId = params.id;
|
||||
const userLoginId = await user_getOneUserId()
|
||||
const userLoginId = await user_getOneUserId();
|
||||
const dataAuthor = await user_getOneByUserId(authorId);
|
||||
const auhtorSelectedData = _.omit(dataAuthor, [
|
||||
"Profile.email",
|
||||
@@ -25,14 +25,11 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
// setTimeout(a, 1000);
|
||||
// });
|
||||
|
||||
|
||||
|
||||
const dataPosting = await forum_getListPostingByAuhtorId(authorId);
|
||||
const totalPosting = await forum_countPostingByAuthorId(authorId);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
<Forum_Forumku
|
||||
auhtorSelectedData={auhtorSelectedData as any}
|
||||
dataPosting={dataPosting as any}
|
||||
|
||||
Reference in New Issue
Block a user