diff --git a/app/[locale]/(protected)/admin/performance-polres/page.tsx b/app/[locale]/(protected)/admin/performance-polres/page.tsx index 79f22bce..350d81c3 100644 --- a/app/[locale]/(protected)/admin/performance-polres/page.tsx +++ b/app/[locale]/(protected)/admin/performance-polres/page.tsx @@ -5,7 +5,7 @@ export default function PerformancePolda() { return (
-

PERFORMANCE KUMULATIF PER POLRES

+ {/*

PERFORMANCE KUMULATIF PER POLRES

*/}
); diff --git a/app/[locale]/(protected)/contributor/report/components/columns.tsx b/app/[locale]/(protected)/contributor/report/components/columns.tsx index e8eea1f5..f205483a 100644 --- a/app/[locale]/(protected)/contributor/report/components/columns.tsx +++ b/app/[locale]/(protected)/contributor/report/components/columns.tsx @@ -73,7 +73,22 @@ const useTableColumns = ({ { accessorKey: "status", header: t("status", { defaultValue: "Status" }), - cell: ({ row }) => {row.getValue("status")}, + cell: ({ row }) => { + const version = Number(row.original.version); // pastikan number + + const isProcess = version === 0; + const status = isProcess ? "Proses" : "Selesai"; + + return ( + + {status} + + ); + }, }, { @@ -131,7 +146,9 @@ const useTableColumns = ({ const response = await downloadReport(id); console.log(response?.data); - const url = window.URL.createObjectURL(new Blob([response?.data], { type : "application/pdf"})); + const url = window.URL.createObjectURL( + new Blob([response?.data], { type: "application/pdf" }) + ); const link = document.createElement("a"); link.href = url; link.setAttribute("download", `report-${id}.pdf`); diff --git a/components/visualization/performance-polda.tsx b/components/visualization/performance-polda.tsx index a088360e..7e1dba5a 100644 --- a/components/visualization/performance-polda.tsx +++ b/components/visualization/performance-polda.tsx @@ -81,7 +81,7 @@ export default function PerformancePoldaViz() {

{levelName == "MABES POLRI" - ? "PERFORMANCE PER POLDA" + ? "PERFORMANCE PER POLDA/SATKER" : "PERFORMANCE POLRES"}

@@ -105,8 +105,8 @@ export default function PerformancePoldaViz() {

{isInternational[0] - ? "PUBLISH CONTENT PER POLDA" - : "PUBLISH KONTEN PER POLDA"} + ? "PUBLISH CONTENT PER POLDA/SATKER" + : "PUBLISH KONTEN PER POLDA/SATKER"}

diff --git a/components/visualization/performance-polres.tsx b/components/visualization/performance-polres.tsx index 523bb92c..15f9a135 100644 --- a/components/visualization/performance-polres.tsx +++ b/components/visualization/performance-polres.tsx @@ -59,7 +59,9 @@ export default function PerformancePolresViz() {

- {isInternational[0] ? "POLRES PERFORMANCE" : "POLFORMANCE POLRES"} + {isInternational[0] + ? "PUBLISH CONTENT PER POLICE REGENCY" + : "PUBLISH KONTEN PER POLRES"}

diff --git a/lib/menus.ts b/lib/menus.ts index 25b24f01..9c98c75e 100644 --- a/lib/menus.ts +++ b/lib/menus.ts @@ -2649,8 +2649,7 @@ export function getMenuList(pathname: string, t: any): Group[] { (Number(roleId) == 3 || Number(roleId) == 14 || Number(roleId) == 15) && Number(levelNumber) == 3 ) { - if (Number(userParentLevelId) != 761) - { + if (Number(userParentLevelId) != 761) { menusSelected = [ { groupLabel: t("apps"), @@ -4009,20 +4008,20 @@ export function getMenuList(pathname: string, t: any): Group[] { }, ], }, - { - groupLabel: "", - id: "agenda-setting", - menus: [ - { - id: "agenda-setting", - href: "/contributor/agenda-setting", - label: t("agenda-setting"), - active: pathname.includes("/agenda-setting"), - icon: "iconoir:journal-page", - submenus: [], - }, - ], - }, + // { + // groupLabel: "", + // id: "agenda-setting", + // menus: [ + // { + // id: "agenda-setting", + // href: "/contributor/agenda-setting", + // label: t("agenda-setting"), + // active: pathname.includes("/agenda-setting"), + // icon: "iconoir:journal-page", + // submenus: [], + // }, + // ], + // }, { groupLabel: "", id: "performance-polres", @@ -4119,41 +4118,41 @@ export function getMenuList(pathname: string, t: any): Group[] { icon: "heroicons:arrow-trending-up", children: [], }, - { - href: "/admin/settings/banner", - label: "Banner", - active: pathname === "/admin/settings/banner", - icon: "heroicons:arrow-trending-up", - children: [], - }, - { - href: "/admin/settings/feedback", - label: "Feedback", - active: pathname === "/admin/settings/feedback", - icon: "heroicons:arrow-trending-up", - children: [], - }, - { - href: "/admin/settings/faq", - label: "FAQ", - active: pathname === "/admin/settings/faq", - icon: "heroicons:arrow-trending-up", - children: [], - }, - { - href: "https://nat-mediahub.polri.go.id/", - label: "Mediahub 2022", - active: pathname === "/admin/settings/mediahub-2022", - icon: "heroicons:arrow-trending-up", - children: [], - }, - { - href: "/admin/settings/privacy", - label: t("privacy"), - active: pathname === "/admin/settings/privacy", - icon: "heroicons:arrow-trending-up", - children: [], - }, + // { + // href: "/admin/settings/banner", + // label: "Banner", + // active: pathname === "/admin/settings/banner", + // icon: "heroicons:arrow-trending-up", + // children: [], + // }, + // { + // href: "/admin/settings/feedback", + // label: "Feedback", + // active: pathname === "/admin/settings/feedback", + // icon: "heroicons:arrow-trending-up", + // children: [], + // }, + // { + // href: "/admin/settings/faq", + // label: "FAQ", + // active: pathname === "/admin/settings/faq", + // icon: "heroicons:arrow-trending-up", + // children: [], + // }, + // { + // href: "https://nat-mediahub.polri.go.id/", + // label: "Mediahub 2022", + // active: pathname === "/admin/settings/mediahub-2022", + // icon: "heroicons:arrow-trending-up", + // children: [], + // }, + // { + // href: "/admin/settings/privacy", + // label: t("privacy"), + // active: pathname === "/admin/settings/privacy", + // icon: "heroicons:arrow-trending-up", + // children: [], + // }, ], }, ],