Browse Source

add select color in table

pull/2/head
wahyuun 1 year ago
parent
commit
7729cd0a6a
  1. 14
      src/views/SimproV2/Divisi/index.js

14
src/views/SimproV2/Divisi/index.js

@ -25,6 +25,7 @@ const config = {
const column = [ const column = [
{ name: "Nama" }, { name: "Nama" },
{ name: "Deskripsi" }, { name: "Deskripsi" },
{ name: "Color" },
] ]
const ProjectType = ({ params }) => { const ProjectType = ({ params }) => {
@ -99,7 +100,7 @@ const ProjectType = ({ params }) => {
"orders": { "orders": {
"ascending": true, "ascending": true,
"columns": [ "columns": [
'id' 'name'
] ]
}, },
"paging": { "paging": {
@ -351,7 +352,16 @@ const ProjectType = ({ params }) => {
</Tooltip> </Tooltip>
</td> </td>
<td>{n.name}</td> <td>{n.name}</td>
<td>{n.description}</td> <td>{n.description ?? '-'}</td>
{n.color != null ? (
<td>
<Tooltip title={n.color}>
<span className="fa fa-square" style={{ color: n.color }}></span>
</Tooltip>
</td>
): (
<td><small style={{ color:"grey",fontStyle:"italic" }}>No color set</small></td>
)}
</tr> </tr>
) )
})} })}

Loading…
Cancel
Save