index.js 860 B

123456789101112131415161718192021222324252627282930
  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 PencabutanSanksi extends Component {
  7. constructor(props) {
  8. super(props);
  9. }
  10. static getInitialProps = async () => {
  11. const sanksi = await getSanksi({ ptId: "0BCE4DB7-B207-445D-8D03-0C54B7688252" });
  12. return { sanksi };
  13. };
  14. render() {
  15. const { sanksi } = this.props;
  16. return (
  17. <ContentWrapper>
  18. <div className="content-heading">Permohonan Keberatan</div>
  19. <Row>
  20. <Col lg={12}>{sanksi.data.length > 0 ? <TableSanksi listData={sanksi.data} to="/app/pt/pencabutan-sanksi/detail" linkName="Detail" /> : ""}</Col>
  21. </Row>
  22. </ContentWrapper>
  23. );
  24. }
  25. }
  26. export default PencabutanSanksi;