|
|
@@ -61,100 +61,117 @@ function TableSanksi({ listData, to, linkName, toKeberatan, toJwbBanding, toJwbK
|
|
|
</Link>
|
|
|
}
|
|
|
</td> */}
|
|
|
- <td>
|
|
|
- {data.last_step === "Permohonan Keberatan" && (
|
|
|
-
|
|
|
- <Link href={{ pathname: toKeberatan, query: { id: data._id } }}>
|
|
|
- <Button className="btn-login" color >
|
|
|
- <span className="font-color-white">
|
|
|
- {linkName}
|
|
|
- </span>
|
|
|
- </Button>
|
|
|
- </Link>
|
|
|
-
|
|
|
- )}
|
|
|
- {data.last_step === "Jawaban Atas Permohonan Keberatan" && (
|
|
|
-
|
|
|
- <Link href={{ pathname: toJwbKeberatan, query: { id: data._id } }}>
|
|
|
- <Button className="btn-login" color >
|
|
|
- <span className="font-color-white">
|
|
|
- {linkName}
|
|
|
- </span>
|
|
|
- </Button>
|
|
|
- </Link>
|
|
|
-
|
|
|
- )}
|
|
|
- {data.last_step === "Jawaban Atas Permohonan Banding" && (
|
|
|
-
|
|
|
- <Link href={{ pathname: toJwbBanding, query: { id: data._id } }}>
|
|
|
- <Button className="btn-login" color >
|
|
|
- <span className="font-color-white">
|
|
|
- {linkName}
|
|
|
- </span>
|
|
|
- </Button>
|
|
|
- </Link>
|
|
|
-
|
|
|
- )}
|
|
|
- {data.last_step === "Permohonan Banding" && (
|
|
|
-
|
|
|
- <Link href={{ pathname: toJwbBanding2, query: { id: data._id } }}>
|
|
|
- <Button className="btn-login" color >
|
|
|
- <span className="font-color-white">
|
|
|
- {linkName}
|
|
|
- </span>
|
|
|
- </Button>
|
|
|
- </Link>
|
|
|
-
|
|
|
- )}
|
|
|
- {data.last_step === "Permohonan Pencabutan Sanksi" && (
|
|
|
-
|
|
|
- <Link href={{ pathname: toCabutSanksi, query: { id: data._id } }}>
|
|
|
- <Button className="btn-login" color >
|
|
|
- <span className="font-color-white">
|
|
|
- {linkName}
|
|
|
- </span>
|
|
|
- </Button>
|
|
|
- </Link>
|
|
|
-
|
|
|
- )}
|
|
|
- {data.last_step === "Jawaban Atas Permohonan Pencabutan Sanksi" && (
|
|
|
-
|
|
|
- <Link href={{ pathname: toJwbCabutSanksi, query: { id: data._id } }}>
|
|
|
- <Button className="btn-login" color >
|
|
|
- <span className="font-color-white">
|
|
|
- {linkName}
|
|
|
- </span>
|
|
|
- </Button>
|
|
|
- </Link>
|
|
|
-
|
|
|
- )}
|
|
|
-
|
|
|
-
|
|
|
- {data.last_step === "Dokumen Perbaikan" && (
|
|
|
-
|
|
|
- <Link href={{ pathname: toPerbaikan, query: { id: data._id } }}>
|
|
|
- <Button className="btn-login" color >
|
|
|
- <span className="font-color-white">
|
|
|
- {linkName}
|
|
|
- </span>
|
|
|
- </Button>
|
|
|
- </Link>
|
|
|
-
|
|
|
- )}
|
|
|
- {data.last_step ? (
|
|
|
-
|
|
|
- ""
|
|
|
-
|
|
|
- ) : (
|
|
|
- <Link href={{ pathname: to, query: { id: data._id } }}>
|
|
|
- <Button className="btn-login" color >
|
|
|
- <span className="font-color-white">
|
|
|
- {linkName}
|
|
|
- </span>
|
|
|
- </Button>
|
|
|
- </Link>
|
|
|
- )}
|
|
|
- </td>
|
|
|
+ {new Date(data.tanggal_akhir_keberatan).getTime() + 86400000 > Date.now() ? (
|
|
|
+ <td>
|
|
|
+ {data.last_step === "Permohonan Keberatan" && (
|
|
|
+
|
|
|
+ <Link href={{ pathname: toKeberatan, query: { id: data._id } }}>
|
|
|
+ <Button className="btn-login" color >
|
|
|
+ <span className="font-color-white">
|
|
|
+ {linkName}
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </Link>
|
|
|
+
|
|
|
+ )}
|
|
|
+ {data.last_step === "Jawaban Atas Permohonan Keberatan" && (
|
|
|
+
|
|
|
+ <Link href={{ pathname: toJwbKeberatan, query: { id: data._id } }}>
|
|
|
+ <Button className="btn-login" color >
|
|
|
+ <span className="font-color-white">
|
|
|
+ {linkName}
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </Link>
|
|
|
+
|
|
|
+ )}
|
|
|
+ {data.last_step === "Jawaban Atas Permohonan Banding" && (
|
|
|
+
|
|
|
+ <Link href={{ pathname: toJwbBanding, query: { id: data._id } }}>
|
|
|
+ <Button className="btn-login" color >
|
|
|
+ <span className="font-color-white">
|
|
|
+ {linkName}
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </Link>
|
|
|
+
|
|
|
+ )}
|
|
|
+ {data.last_step === "Permohonan Banding" && (
|
|
|
+
|
|
|
+ <Link href={{ pathname: toJwbBanding2, query: { id: data._id } }}>
|
|
|
+ <Button className="btn-login" color >
|
|
|
+ <span className="font-color-white">
|
|
|
+ {linkName}
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </Link>
|
|
|
+
|
|
|
+ )}
|
|
|
+ {data.last_step === "Permohonan Pencabutan Sanksi" && (
|
|
|
+
|
|
|
+ <Link href={{ pathname: toCabutSanksi, query: { id: data._id } }}>
|
|
|
+ <Button className="btn-login" color >
|
|
|
+ <span className="font-color-white">
|
|
|
+ {linkName}
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </Link>
|
|
|
+
|
|
|
+ )}
|
|
|
+ {data.last_step === "Jawaban Atas Permohonan Pencabutan Sanksi" && (
|
|
|
+
|
|
|
+ <Link href={{ pathname: toJwbCabutSanksi, query: { id: data._id } }}>
|
|
|
+ <Button className="btn-login" color >
|
|
|
+ <span className="font-color-white">
|
|
|
+ {linkName}
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </Link>
|
|
|
+
|
|
|
+ )}
|
|
|
+
|
|
|
+
|
|
|
+ {data.last_step === "Dokumen Perbaikan" && (
|
|
|
+
|
|
|
+ <Link href={{ pathname: toPerbaikan, query: { id: data._id } }}>
|
|
|
+ <Button className="btn-login" color >
|
|
|
+ <span className="font-color-white">
|
|
|
+ {linkName}
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </Link>
|
|
|
+
|
|
|
+ )}
|
|
|
+ {data.last_step ? (
|
|
|
+
|
|
|
+ ""
|
|
|
+
|
|
|
+ ) : (
|
|
|
+ <Link href={{ pathname: to, query: { id: data._id } }}>
|
|
|
+ <Button className="btn-login" color >
|
|
|
+ <span className="font-color-white">
|
|
|
+ {linkName}
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </Link>
|
|
|
+ )}
|
|
|
+ </td>
|
|
|
+ ) :
|
|
|
+ (
|
|
|
+ <td>
|
|
|
+ <Link href={{ pathname: toPerbaikan, query: { id: data._id } }}>
|
|
|
+ <Button className="btn-login" color >
|
|
|
+ <span className="font-color-white">
|
|
|
+ {linkName}
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </Link>
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
</tr>
|
|
|
);
|