## Deskripsi :
- Prisma seeder
### No Issue
This commit is contained in:
2024-07-25 10:15:21 +08:00
parent 6bdacd137e
commit f336e8ad30
11 changed files with 185 additions and 62 deletions

View File

@@ -0,0 +1,28 @@
import { RouterAdminEvent } from "@/app/lib/router_admin/router_admin_event";
import { RouterAdminVote } from "@/app/lib/router_admin/router_admin_vote";
import { MODEL_NOTIFIKASI } from "@/app_modules/notifikasi/model/interface";
import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime";
export async function adminNotifikasi_findRouterEvent({
data,
router,
onChangeNavbar,
onToggleNavbar,
}: {
data: MODEL_NOTIFIKASI;
router: AppRouterInstance;
onChangeNavbar: (val: any) => void;
onToggleNavbar: (val: any) => void;
}) {
const path = RouterAdminEvent.table_review
if (data.status === "Review") {
router.push(path, { scroll: false });
onChangeNavbar({
id: 4,
childId: 43,
});
}
onToggleNavbar(true);
}