fix: local dev error

This commit is contained in:
Sabda Yagra 2026-01-09 14:30:51 +07:00
parent edafc223db
commit 2d09af2e8b
2 changed files with 36 additions and 7 deletions

View File

@ -67,10 +67,10 @@ const columns: ColumnDef<any>[] = [
// }, // },
// }, // },
{ {
accessorKey: "resultTotal", accessorKey: "amplification",
header: () => <div className="text-center w-full">Jumlah Amplifikasi</div>, header: () => <div className="text-center w-full">Jumlah Amplifikasi</div>,
cell: ({ row }) => { cell: ({ row }) => {
const totalRaw = row.getValue("resultTotal") as number | string | null; const totalRaw = row.getValue("amplification") as number | string | null;
const total = const total =
totalRaw === null || totalRaw === undefined || totalRaw === "" totalRaw === null || totalRaw === undefined || totalRaw === ""
@ -110,11 +110,7 @@ const columns: ColumnDef<any>[] = [
header: () => <div className="text-center">Status</div>, header: () => <div className="text-center">Status</div>,
cell: ({ row }) => { cell: ({ row }) => {
const raw = Boolean(row.getValue("isProcessing")); const raw = Boolean(row.getValue("isProcessing"));
// KONDISI STATUS
const statusText = raw ? "Sedang Diproses" : "Sudah Selesai"; const statusText = raw ? "Sedang Diproses" : "Sudah Selesai";
// WARNA STATUS
const colorClass = raw const colorClass = raw
? "bg-yellow-100 text-yellow-700 border border-yellow-300" ? "bg-yellow-100 text-yellow-700 border border-yellow-300"
: "bg-green-100 text-green-700 border border-green-300"; : "bg-green-100 text-green-700 border border-green-300";

View File

@ -20,6 +20,35 @@ const nextConfig = {
// locales: ["en", "in"], // locales: ["en", "in"],
// defaultLocale: "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: { images: {
remotePatterns: [ remotePatterns: [
{ {
@ -42,11 +71,15 @@ const nextConfig = {
protocol: "https", protocol: "https",
hostname: "i.pravatar.cc", hostname: "i.pravatar.cc",
}, },
{ protocol: "https", hostname: "netidhub.com" },
{ {
protocol: "https", protocol: "https",
hostname: "netidhub.com", hostname: "netidhub.com",
}, },
{
protocol: "https",
hostname: "new.netidhub.com",
pathname: "/**",
},
], ],
}, },
// eslint: { // eslint: {