index.js 929 B

12345678910111213141516171819202122232425262728293031
  1. import React, { Component } from "react";
  2. import ContentWrapper from "@/components/Layout/ContentWrapper";
  3. import { Row, Col } from "reactstrap";
  4. import { getSanksi } from "@/actions/sanksi";
  5. import TableSanksi from "@/components/PT/TableSanksi";
  6. class JawabanKeberatan extends Component {
  7. constructor(props) {
  8. super(props);
  9. }
  10. static getInitialProps = async () => {
  11. const sanksi = await getSanksi({ keberatan: true, jawaban: true, ptId: "0BCE4DB7-B207-445D-8D03-0C54B7688252" });
  12. return { sanksi };
  13. };
  14. render() {
  15. const { sanksi } = this.props;
  16. console.log(sanksi);
  17. return (
  18. <ContentWrapper>
  19. <div className="content-heading">Jawaban Atas Permohonan Keberatan</div>
  20. <Row>
  21. <Col lg={12}>{sanksi.data.length > 0 ? <TableSanksi listData={sanksi.data} to="/app/pt/jawaban-keberatan/detail" linkName="Detail" /> : ""} </Col>
  22. </Row>
  23. </ContentWrapper>
  24. );
  25. }
  26. }
  27. export default JawabanKeberatan;