BIN
public/aset/home/home-hipmi-new.png
Normal file
BIN
public/aset/home/home-hipmi-new.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 128 KiB |
@@ -10,15 +10,6 @@ export default async function PageHome() {
|
|||||||
const dataJob = await job_getTwoForHomeView();
|
const dataJob = await job_getTwoForHomeView();
|
||||||
const countNotifikasi = await notifikasi_countUserNotifikasi();
|
const countNotifikasi = await notifikasi_countUserNotifikasi();
|
||||||
|
|
||||||
// console.log(userLoginId, "ini di home");
|
|
||||||
// console.log(dataUser, "ini di home");
|
|
||||||
|
|
||||||
// if (dataUser?.active === false) {
|
|
||||||
// return redirect(RouterHome.home_user_non_active);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if (dataUser?.masterUserRoleId === "2" || dataUser?.masterUserRoleId === "3")
|
|
||||||
// return redirect(RouterAdminDashboard.main_admin);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export function Home_UiView({
|
|||||||
border: `2px solid ${AccentColor.blue}`,
|
border: `2px solid ${AccentColor.blue}`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Image radius={"lg"} alt="logo" src={"/aset/home/home-hipmi.png"} />
|
<Image radius={"lg"} alt="logo" src={"/aset/home/home-hipmi-new.png"} />
|
||||||
</Paper>
|
</Paper>
|
||||||
|
|
||||||
<Stack my={"sm"}>
|
<Stack my={"sm"}>
|
||||||
|
|||||||
@@ -1,21 +1,15 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
import { gs_count_ntf, gs_user_ntf } from "@/app/lib/global_state";
|
||||||
import { useEffect, useState } from "react";
|
import { useShallowEffect } from "@mantine/hooks";
|
||||||
|
import { useAtom } from "jotai";
|
||||||
|
import { useState } from "react";
|
||||||
import UIGlobal_LayoutHeaderTamplate from "../_global/ui/ui_header_tamplate";
|
import UIGlobal_LayoutHeaderTamplate from "../_global/ui/ui_header_tamplate";
|
||||||
import UIGlobal_LayoutTamplate from "../_global/ui/ui_layout_tamplate";
|
import UIGlobal_LayoutTamplate from "../_global/ui/ui_layout_tamplate";
|
||||||
import { MODEL_JOB } from "../job/model/interface";
|
import { MODEL_JOB } from "../job/model/interface";
|
||||||
import {
|
import notifikasi_countUserNotifikasi from "../notifikasi/fun/count/fun_count_by_id";
|
||||||
ComponentHome_ButtonHeaderLeft,
|
import { ComponentHome_ButtonHeaderLeft, ComponentHome_ButtonHeaderRight, } from "./component/button_header";
|
||||||
ComponentHome_ButtonHeaderRight,
|
|
||||||
} from "./component/button_header";
|
|
||||||
import { Home_UiFooter, Home_UiView } from "./component/ui_home";
|
import { Home_UiFooter, Home_UiView } from "./component/ui_home";
|
||||||
import { MODEL_USER } from "./model/interface";
|
import { MODEL_USER } from "./model/interface";
|
||||||
import { useShallowEffect } from "@mantine/hooks";
|
|
||||||
import { gs_count_ntf, gs_user_ntf } from "@/app/lib/global_state";
|
|
||||||
import { useAtom } from "jotai";
|
|
||||||
import notifikasi_countUserNotifikasi from "../notifikasi/fun/count/fun_count_by_id";
|
|
||||||
import { Center, Text, Title } from "@mantine/core";
|
|
||||||
import { useRouter } from "next/navigation";
|
|
||||||
|
|
||||||
export default function HomeView({
|
export default function HomeView({
|
||||||
dataUser,
|
dataUser,
|
||||||
@@ -26,7 +20,6 @@ export default function HomeView({
|
|||||||
dataJob: MODEL_JOB[];
|
dataJob: MODEL_JOB[];
|
||||||
countNotifikasi: number;
|
countNotifikasi: number;
|
||||||
}) {
|
}) {
|
||||||
const router = useRouter();
|
|
||||||
const [countNtf, setCountNtf] = useState(countNotifikasi);
|
const [countNtf, setCountNtf] = useState(countNotifikasi);
|
||||||
const [newUserNtf, setNewUserNtf] = useAtom(gs_user_ntf);
|
const [newUserNtf, setNewUserNtf] = useAtom(gs_user_ntf);
|
||||||
const [countLoadNtf, setCountLoadNtf] = useAtom(gs_count_ntf);
|
const [countLoadNtf, setCountLoadNtf] = useAtom(gs_count_ntf);
|
||||||
@@ -60,15 +53,11 @@ export default function HomeView({
|
|||||||
onLoad(loadNotif);
|
onLoad(loadNotif);
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log(dataUser, "dipage")
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<UIGlobal_LayoutTamplate
|
<UIGlobal_LayoutTamplate
|
||||||
header={
|
header={
|
||||||
// <Center>
|
|
||||||
// <Title order={3}>HIPMI</Title>
|
|
||||||
// </Center>
|
|
||||||
<UIGlobal_LayoutHeaderTamplate
|
<UIGlobal_LayoutHeaderTamplate
|
||||||
title="HIPMI"
|
title="HIPMI"
|
||||||
customButtonLeft={
|
customButtonLeft={
|
||||||
|
|||||||
Reference in New Issue
Block a user