Fix: Event

Deskripsi:
- Fix database event
- Fix style detal
This commit is contained in:
2024-11-29 16:15:54 +08:00
parent 517b2bb9b0
commit 45279cd37f
36 changed files with 714 additions and 611 deletions

View File

@@ -2,7 +2,7 @@
import { RouterAuth } from "@/app/lib/router_hipmi/router_auth";
import { useShallowEffect } from "@mantine/hooks";
import { useRouter } from "next/navigation";
import { redirect, useRouter } from "next/navigation";
import { MODEL_USER } from "../home/model/interface";
import { RouterHome } from "@/app/lib/router_hipmi/router_home";
import { RouterAdminDashboard } from "@/app/lib/router_hipmi/router_admin";
@@ -16,6 +16,12 @@ export function CheckCookies_UiLayout({
}) {
const router = useRouter();
// if (dataUser.active == false){
// router.push(RouterHome.home_user_non_active, { scroll: false });
// return children
// }
// useShallowEffect(() => {
// onCheckCookies();
// }, []);
@@ -38,5 +44,5 @@ export function CheckCookies_UiLayout({
// router.push(RouterAdminDashboard.splash_admin, { scroll: false });
// }
return children;
return <>{children}</>;
}