index.js 894 B

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