|
|
@@ -3,7 +3,7 @@ import { Button } from "reactstrap";
|
|
|
import Link from "next/link";
|
|
|
import moment from "moment";
|
|
|
|
|
|
-function TableLaporan({ listData, to, linkName, status = false }) {
|
|
|
+function TableLaporan({ listData, to, linkName, status = false, noBy = false }) {
|
|
|
return (
|
|
|
<div className="card b">
|
|
|
<div className="card-body">
|
|
|
@@ -15,7 +15,7 @@ function TableLaporan({ listData, to, linkName, status = false }) {
|
|
|
<th>No.Laporan</th>
|
|
|
<th>Deskripsi Laporan</th>
|
|
|
{status ? <th>Status</th> : ""}
|
|
|
- <th>Dibuat Oleh</th>
|
|
|
+ {!noBy && <th>Dibuat Oleh</th>}
|
|
|
<th>Created</th>
|
|
|
<th></th>
|
|
|
</tr>
|
|
|
@@ -42,7 +42,7 @@ function TableLaporan({ listData, to, linkName, status = false }) {
|
|
|
) : (
|
|
|
""
|
|
|
)}
|
|
|
- <td>{data.user_id.isPrivate ? "" : data.user_id.nama}</td>
|
|
|
+ {!noBy && <td>{data.user_id.isPrivate ? "" : data.user_id.nama}</td>}
|
|
|
<td>{moment(data.createdAt).fromNow()}</td>
|
|
|
<td>
|
|
|
<div className="ml-auto">
|