Deskripsi:
- Realtime notifikasi
## No Issue
This commit is contained in:
2024-07-24 10:14:07 +08:00
parent 73c6d58eef
commit 6553f6163f
25 changed files with 510 additions and 289 deletions

View File

@@ -12,17 +12,18 @@ import {
MainColor,
} from "@/app_modules/_global/color/color_pallet";
import notifikasi_getByUserId from "../fun/get/get_notifiaksi_by_id";
import { redirectVotingPage } from "./path/voting";
export function ComponentNotifiaksi_CardView({
data,
onLoadData,
activePage,
onSetJob,
onSetMenu,
}: {
data: MODEL_NOTIFIKASI;
onLoadData: (val: any) => void;
activePage: number;
onSetJob: (val: any) => void;
onSetMenu: (val: any) => void;
}) {
const router = useRouter();
return (
@@ -45,7 +46,7 @@ export function ComponentNotifiaksi_CardView({
data: data,
router: router,
onSetPage(val) {
onSetJob(val);
onSetMenu(val);
},
});
@@ -55,6 +56,15 @@ export function ComponentNotifiaksi_CardView({
router: router,
});
data?.kategoriApp === "VOTING" &&
redirectVotingPage({
data: data,
router: router,
onSetPage(val) {
onSetMenu(val);
},
});
const updateIsRead = await notifikasi_funUpdateIsReadById({
notifId: data?.id,
});