diff --git a/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx b/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx index b95fcd11..a5aa31cb 100644 --- a/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx +++ b/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx @@ -67,10 +67,10 @@ const columns: ColumnDef[] = [ // }, // }, { - accessorKey: "resultTotal", + accessorKey: "amplification", header: () =>
Jumlah Amplifikasi
, cell: ({ row }) => { - const totalRaw = row.getValue("resultTotal") as number | string | null; + const totalRaw = row.getValue("amplification") as number | string | null; const total = totalRaw === null || totalRaw === undefined || totalRaw === "" @@ -110,11 +110,7 @@ const columns: ColumnDef[] = [ header: () =>
Status
, cell: ({ row }) => { const raw = Boolean(row.getValue("isProcessing")); - - // KONDISI STATUS const statusText = raw ? "Sedang Diproses" : "Sudah Selesai"; - - // WARNA STATUS const colorClass = raw ? "bg-yellow-100 text-yellow-700 border border-yellow-300" : "bg-green-100 text-green-700 border border-green-300"; diff --git a/next.config.mjs b/next.config.mjs index e51766c5..125af78f 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -20,6 +20,35 @@ const nextConfig = { // locales: ["en", "in"], // defaultLocale: "in", // }, + // images: { + // remotePatterns: [ + // { + // protocol: "https", + // hostname: "api.lorem.space", + // }, + // { + // protocol: "https", + // hostname: "lh3.googleusercontent.com", + // }, + // { + // protocol: "https", + // hostname: "a0.muscache.com", + // }, + // { + // protocol: "https", + // hostname: "avatars.githubusercontent.com", + // }, + // { + // protocol: "https", + // hostname: "i.pravatar.cc", + // }, + // { protocol: "https", hostname: "netidhub.com" }, + // { + // protocol: "https", + // hostname: "netidhub.com", + // }, + // ], + // }, images: { remotePatterns: [ { @@ -62,6 +91,11 @@ const nextConfig = { hostname: "netidhub.com", pathname: "/**", }, + { + protocol: "https", + hostname: "new.netidhub.com", + pathname: "/**", + }, ], }, // eslint: { diff --git a/src/lib/api.ts b/src/lib/api.ts index 68ee6bf0..294c2aed 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -1,7 +1,7 @@ import axios from "axios"; const api = axios.create({ - baseURL: "https://mediahub.polri.go.id/api/v2", + baseURL: "https://new.netidhub.com/api", headers: { "Content-Type": "application/json", }, @@ -9,4 +9,3 @@ const api = axios.create({ export default api; -