TableRadarr.js 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. import React, { Component } from 'react';
  2. import ContentWrapper from '@/components/Layout/ContentWrapper';
  3. import { Row, Col, Card, CardHeader, CardBody, Table } from 'reactstrap';
  4. function TableRadarr({ listData }) {
  5. return (
  6. <Card className="card-default">
  7. <CardBody>
  8. <Table bordered responsive>
  9. <thead>
  10. <tr >
  11. <th>Wilayah LLDikti\Menu</th>
  12. <th style={{
  13. backgroundColor: '#80b1ff',
  14. color: "black",
  15. }}>Penjadwalan Evaluasi</th>
  16. <th style={{
  17. backgroundColor: '#de8383',
  18. color: "black",
  19. }}>Pemeriksaan</th>
  20. <th style={{
  21. backgroundColor: '#fdda80',
  22. color: "black",
  23. }}>Sanksi</th>
  24. <th style={{
  25. backgroundColor: '#cfab80',
  26. color: "black",
  27. }}>Keberatan</th>
  28. <th style={{
  29. backgroundColor: '#ef90df',
  30. color: "black",
  31. }}>Banding</th>
  32. <th style={{
  33. backgroundColor: '#80df89',
  34. color: "black",
  35. }}>Pemantauan perbaikan</th>
  36. <th style={{
  37. backgroundColor: '#a3d4d1',
  38. color: "black",
  39. }}>Pencabutan Sanksi</th>
  40. </tr>
  41. </thead>
  42. {listData.map((data) => {
  43. return (
  44. <tr key={data.id}>
  45. <td>{data.pembina.name}</td>
  46. <td style={{
  47. backgroundColor: '#80b1ff',
  48. color: "black",
  49. textAlign: "center",
  50. }}>{data.jumlah_jadwal_evaluasi}</td>
  51. <td style={{
  52. backgroundColor: '#de8383',
  53. color: "black",
  54. textAlign: "center",
  55. }}>{data.jumlah_pemeriksaan}</td>
  56. <td style={{
  57. backgroundColor: '#fdda80',
  58. color: "black",
  59. textAlign: "center",
  60. }}>{data.jumlah_sanksi}</td>
  61. <td style={{
  62. backgroundColor: '#cfab80',
  63. color: "black",
  64. textAlign: "center",
  65. }}>{data.jumlah_keberatan}</td>
  66. <td style={{
  67. backgroundColor: '#ef90df',
  68. color: "black",
  69. textAlign: "center",
  70. }}>{data.jumlah_banding}</td>
  71. <td style={{
  72. backgroundColor: '#80df89',
  73. color: "black",
  74. textAlign: "center",
  75. }}>{data.jumlah_pemantauan_perbaikan}</td>
  76. <td style={{
  77. backgroundColor: '#a3d4d1',
  78. color: "black",
  79. textAlign: "center",
  80. }}>{data.jumlah_pencabutan_sanksi}</td>
  81. </tr>)
  82. })}
  83. </Table>
  84. </CardBody>
  85. </Card>
  86. )
  87. }
  88. export default TableRadarr