import React, { Component } from "react"; import ContentWrapper from "@/components/Layout/ContentWrapper"; import { Row, Col } from "reactstrap"; import CaseProgress from "@/components/Main/CaseProgress"; import TableSanksi from "@/components/PencabutanSanksi/TableSanksi"; import { getSanksi } from "@/actions/sanksi"; import { connect } from "react-redux"; import Loader from "@/components/Common/Loader"; class PencabutanSanksi extends Component { constructor(props) { super(props); this.state = { sanksi: {}, }; } componentDidMount = async () => { const { token } = this.props; const sanksi = await getSanksi(token, { cabutSanksi: true }); this.setState({ sanksi }); }; render() { const { sanksi } = this.state; return (
Permohonan Pencabutan Sanksi
{sanksi.data ? : }
); } } const mapStateToProps = (state) => ({ user: state.user, token: state.token }); export default connect(mapStateToProps)(PencabutanSanksi);