|
@@ -14,6 +14,7 @@ import { getPelaporan } from "@/actions/pelaporan";
|
|
|
import { createSanksi } from "@/actions/sanksi";
|
|
import { createSanksi } from "@/actions/sanksi";
|
|
|
import { getPelanggaranId } from "@/actions/pelanggaran";
|
|
import { getPelanggaranId } from "@/actions/pelanggaran";
|
|
|
import { connect } from "react-redux";
|
|
import { connect } from "react-redux";
|
|
|
|
|
+import Loader from "@/components/Common/Loader";
|
|
|
|
|
|
|
|
const stepNavitemStyle = {
|
|
const stepNavitemStyle = {
|
|
|
backgroundColor: "#fcfcfc",
|
|
backgroundColor: "#fcfcfc",
|
|
@@ -161,7 +162,7 @@ class ProsesSanksi extends Component {
|
|
|
<TabPane tabId="1">
|
|
<TabPane tabId="1">
|
|
|
<div className="pt-3 mb-3">
|
|
<div className="pt-3 mb-3">
|
|
|
<h2>Detail Laporan</h2>
|
|
<h2>Detail Laporan</h2>
|
|
|
- {pelaporan?.data && <DetailLaporan noTitle data={pelaporan.data[0]} />}
|
|
|
|
|
|
|
+ {pelaporan?.data ? <DetailLaporan noTitle data={pelaporan.data[0]} /> : <Loader />}
|
|
|
</div>
|
|
</div>
|
|
|
<hr />
|
|
<hr />
|
|
|
<div className="d-flex">
|
|
<div className="d-flex">
|
|
@@ -174,7 +175,13 @@ class ProsesSanksi extends Component {
|
|
|
<div className="pt-3 mb-3">
|
|
<div className="pt-3 mb-3">
|
|
|
<h2>Hasil Evaluasi</h2>
|
|
<h2>Hasil Evaluasi</h2>
|
|
|
<Card className="card-default">
|
|
<Card className="card-default">
|
|
|
- <CardBody>{pelaporan?.data && <TableRiwayat data={pelaporan.data[0]} />}</CardBody>
|
|
|
|
|
|
|
+ {pelaporan?.data ? (
|
|
|
|
|
+ <CardBody>
|
|
|
|
|
+ <TableRiwayat data={pelaporan.data[0]} />
|
|
|
|
|
+ </CardBody>
|
|
|
|
|
+ ) : (
|
|
|
|
|
+ <Loader />
|
|
|
|
|
+ )}
|
|
|
</Card>
|
|
</Card>
|
|
|
</div>
|
|
</div>
|
|
|
<hr />
|
|
<hr />
|
|
@@ -220,7 +227,7 @@ class ProsesSanksi extends Component {
|
|
|
<TabPane tabId="5">
|
|
<TabPane tabId="5">
|
|
|
<div className="pt-3 mb-3">
|
|
<div className="pt-3 mb-3">
|
|
|
<h2>Ringkasan</h2>
|
|
<h2>Ringkasan</h2>
|
|
|
- {pelaporan?.data && <Ringkasan dataLaporan={pelaporan.data[0]} dataPelanggaran={dataPelanggaran.data} dataUpload={dataUpload} />}
|
|
|
|
|
|
|
+ {pelaporan?.data ? <Ringkasan dataLaporan={pelaporan.data[0]} dataPelanggaran={dataPelanggaran.data} dataUpload={dataUpload} /> : <Loader />}
|
|
|
</div>
|
|
</div>
|
|
|
<hr />
|
|
<hr />
|
|
|
<div className="d-flex">
|
|
<div className="d-flex">
|