feat:update
This commit is contained in:
parent
900b40a8ba
commit
1f273035d4
|
|
@ -49,7 +49,7 @@ const useTableColumns = ({
|
|||
},
|
||||
{
|
||||
accessorKey: "createdAt",
|
||||
header: t("upload-date"),
|
||||
header: t("generate-date"),
|
||||
cell: ({ row }) => {
|
||||
const createdAt = row.getValue("createdAt") as
|
||||
| string
|
||||
|
|
@ -69,6 +69,12 @@ const useTableColumns = ({
|
|||
cell: ({ row }) => <span className="">{row.getValue("version")}</span>,
|
||||
},
|
||||
|
||||
{
|
||||
accessorKey: "status",
|
||||
header: t("status"),
|
||||
cell: ({ row }) => <span className="">{row.getValue("status")}</span>,
|
||||
},
|
||||
|
||||
{
|
||||
id: "actions",
|
||||
accessorKey: "action",
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ import { useEffect, useState } from "react";
|
|||
import Cookies from "js-cookie";
|
||||
|
||||
export default function ExecutiveDashboard() {
|
||||
|
||||
const [startDate, setStartDate] = useState<any>(new Date());
|
||||
const [endDate, setEndDate] = useState<any>(new Date());
|
||||
const [hasMounted, setHasMounted] = useState(false);
|
||||
|
|
@ -153,7 +152,6 @@ export default function ExecutiveDashboard() {
|
|||
<p className="text-base font-semibold">
|
||||
Upload konten hari ini Polda
|
||||
</p>
|
||||
<LucideBoxSelect />
|
||||
</div>
|
||||
<div className="my-5">
|
||||
{ticket1 == "" ? (
|
||||
|
|
@ -186,7 +184,6 @@ export default function ExecutiveDashboard() {
|
|||
<p className="text-base font-semibold">
|
||||
Upload konten hari ini Satker
|
||||
</p>
|
||||
<LucideBoxSelect />
|
||||
</div>
|
||||
<div className="my-5">
|
||||
{ticket2 == "" ? (
|
||||
|
|
@ -219,7 +216,6 @@ export default function ExecutiveDashboard() {
|
|||
<p className="text-base font-semibold">
|
||||
Upload konten hari ini Polres
|
||||
</p>
|
||||
<LucideBoxSelect />
|
||||
</div>
|
||||
<div className="my-5">
|
||||
{ticket3 == "" ? (
|
||||
|
|
@ -245,7 +241,6 @@ export default function ExecutiveDashboard() {
|
|||
<Card className="rounded-sm p-3 h-[750px]">
|
||||
<div className="flex flex-row justify-between">
|
||||
<p className="text-base font-semibold">Konten Paling Populer</p>
|
||||
<LucideBoxSelect />
|
||||
</div>
|
||||
<div className="my-5">
|
||||
{ticket4 == "" ? (
|
||||
|
|
@ -268,14 +263,13 @@ export default function ExecutiveDashboard() {
|
|||
</div>
|
||||
<div className="w-full mt-3">
|
||||
<Card className="rounded-sm p-3 h-[750px]">
|
||||
<div className="flex flex-row justify-between">
|
||||
<div className="flex flex-row justify-between mx-3">
|
||||
<p className="text-base font-semibold">
|
||||
Heatmap Konten Dengan Interaksi
|
||||
</p>
|
||||
<p className="text-base font-semibold">
|
||||
Heatmap Kategori Dengan Interaksi
|
||||
</p>
|
||||
<LucideBoxSelect />
|
||||
</div>
|
||||
<div className="my-5">
|
||||
{ticket5 == "" ? (
|
||||
|
|
@ -300,7 +294,6 @@ export default function ExecutiveDashboard() {
|
|||
<Card className="rounded-sm p-3 h-auto">
|
||||
<div className="flex flex-row justify-between">
|
||||
<p className="text-base font-semibold">Emergency Issue</p>
|
||||
<LucideBoxSelect />
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col">
|
||||
|
|
|
|||
|
|
@ -144,7 +144,6 @@ export default function FormSurveyDetailPage() {
|
|||
|
||||
setDetail(details);
|
||||
|
||||
// Set value dari data detail ke form
|
||||
if (details) {
|
||||
setValue("accessFrequency", details.accessFrequency || "");
|
||||
setValue("uiExperienceDesign", details.uiExperienceDesign || "");
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ import { useState } from "react";
|
|||
import { createTaskTa } from "@/service/task";
|
||||
import { createSurveyData } from "@/service/survey/survey";
|
||||
|
||||
// Schema untuk validasi
|
||||
const surveySchema = z.object({
|
||||
accessFrequency: z.string(),
|
||||
uiExperienceDesign: z.string(),
|
||||
|
|
|
|||
|
|
@ -206,17 +206,20 @@ const LoginForm = () => {
|
|||
Number(profile?.data?.data?.roleId) == 18 ||
|
||||
Number(profile?.data?.data?.roleId) == 19
|
||||
) {
|
||||
if (profile?.data?.data?.roleId === 18 || profile?.data?.data?.roleId === 2) {
|
||||
if (
|
||||
profile?.data?.data?.roleId === 18 ||
|
||||
profile?.data?.data?.roleId === 2
|
||||
) {
|
||||
window.location.href = "/in/dashboard/executive";
|
||||
// router.push('/admin/dashboard');
|
||||
Cookies.set("status", "login", {
|
||||
expires: 1,
|
||||
});
|
||||
} else if (
|
||||
profile?.data?.data?.userLevel?.id == 761 ||
|
||||
profile?.data?.data?.userLevel?.id == 794 ||
|
||||
profile?.data?.data?.userLevel?.parentLevelId == 761
|
||||
) {
|
||||
window.location.href = "/in/dashboard/executive";
|
||||
window.location.href = "/in/dashboard";
|
||||
Cookies.set("status", "login", {
|
||||
expires: 1,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -639,6 +639,8 @@
|
|||
"title": "Title",
|
||||
"category-name": "Category Name",
|
||||
"upload-date": "Upload Date",
|
||||
"generate-date": "Generate Date",
|
||||
"status": "status",
|
||||
"creator-group": "Creator Group",
|
||||
"source": "source",
|
||||
"published": "Published",
|
||||
|
|
|
|||
|
|
@ -640,6 +640,8 @@
|
|||
"title": "Judul",
|
||||
"category-name": "Nama Kategori",
|
||||
"upload-date": "Tanggal Upload",
|
||||
"generate-date": "Tanggal Generate",
|
||||
"status": "status",
|
||||
"creator-group": "Pembuat",
|
||||
"source": "Sumber",
|
||||
"published": "Diterbitkan",
|
||||
|
|
|
|||
Loading…
Reference in New Issue