Fix notifikasi count di home
This commit is contained in:
@@ -1,21 +1,9 @@
|
||||
import { HomeViewNew } from "@/app_modules/home";
|
||||
import notifikasi_countUserNotifikasi from "@/app_modules/notifikasi/fun/count/fun_count_by_id";
|
||||
|
||||
export default async function PageHome() {
|
||||
// const userLoginId = await funGetUserIdByToken();
|
||||
// const dataUser = await user_getOneByUserId(userLoginId as string);
|
||||
// const dataJob = await job_getTwoForHomeView();
|
||||
const countNotifikasi = await notifikasi_countUserNotifikasi();
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <HomeView
|
||||
dataUser={dataUser as any}
|
||||
dataJob={dataJob as any}
|
||||
countNotifikasi={countNotifikasi}
|
||||
/> */}
|
||||
<HomeViewNew countNotifikasi={countNotifikasi}/>
|
||||
<HomeViewNew />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -7,9 +7,13 @@ export default async function Layout({
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
|
||||
const userId = await newFunGetUserId();
|
||||
|
||||
return (
|
||||
<>
|
||||
<RealtimeProvider
|
||||
userId={userId}
|
||||
WIBU_REALTIME_TOKEN={
|
||||
ServerEnv.value?.NEXT_PUBLIC_WIBU_REALTIME_TOKEN as string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user