|
|
@@ -8,14 +8,15 @@ function TableLaporan({ listData, to, linkName, status = false, noBy = false })
|
|
|
<div className="card b ">
|
|
|
<div className="card-body card-over">
|
|
|
{listData && (
|
|
|
- <Datatable options={{ responsive: false, ordering: true }}>
|
|
|
- <table className="table w-100" data-order='[[1, "desc"]]'>
|
|
|
+ <Datatable options={{ responsive: false, ordering: true
|
|
|
+ }}>
|
|
|
+ <table className="table w-100" data-order='[[0, "desc"]]'>
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>No.Laporan</th>
|
|
|
<th>Deskripsi Laporan</th>
|
|
|
<th>Status</th>
|
|
|
- {!noBy && <th>Dibuat Oleh</th>}
|
|
|
+ {/* {!noBy && <th>Dibuat Oleh</th>} */}
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@@ -27,6 +28,7 @@ function TableLaporan({ listData, to, linkName, status = false, noBy = false })
|
|
|
<div className="media align-items-center">
|
|
|
<div className="media-body d-flex">
|
|
|
<div>
|
|
|
+ <p style={{ display: "none" }}>{data.createdAt}</p>
|
|
|
<h4>{data.no_laporan}</h4>
|
|
|
<p>{moment(data.createdAt).format("DD-MM-YYYY")}</p>
|
|
|
</div>
|
|
|
@@ -54,7 +56,7 @@ function TableLaporan({ listData, to, linkName, status = false, noBy = false })
|
|
|
) : (
|
|
|
""
|
|
|
)}
|
|
|
- {!noBy && <td>{data.user.isPrivate ? "" : data.user.nama}</td>}
|
|
|
+ {/* {!noBy && <td>{data.user.isPrivate ? "" : data.user.nama}</td>} */}
|
|
|
{/* <td>
|
|
|
<div className="ml-auto">
|
|
|
<Link
|