index.js 863 B

123456789101112131415161718192021222324252627282930313233343536
  1. import React, { Component } from "react";
  2. import ContentWrapper from "@/components/Layout/ContentWrapper";
  3. import { Row, Col } from "reactstrap";
  4. import { getPelaporan } from "@/actions/pelaporan";
  5. import CaseProgress from "@/components/Main/CaseProgress";
  6. import TableLaporan from "@/components/Sanksi/TableLaporan";
  7. class Sanksi extends Component {
  8. constructor(props) {
  9. super(props);
  10. }
  11. static getInitialProps = async () => {
  12. const pelaporan = await getPelaporan({ pemeriksaan: true });
  13. return { pelaporan };
  14. };
  15. render() {
  16. const { pelaporan } = this.props;
  17. return (
  18. <ContentWrapper>
  19. <div className="content-heading">Sanksi</div>
  20. <Row>
  21. <Col lg="4">
  22. <CaseProgress />
  23. </Col>
  24. <Col lg="8">
  25. <TableLaporan listData={pelaporan.data} />
  26. </Col>
  27. </Row>
  28. </ContentWrapper>
  29. );
  30. }
  31. }
  32. export default Sanksi;