import React, { Component } from 'react'; import SignatureCanvas from 'react-signature-canvas' import { getOneLaporan, updateLaporan } from "@/actions/pelaporan"; import { Row, Col, Input, FormGroup, Label, Progress } from "reactstrap"; import { connect } from "react-redux"; import moment from "moment"; import 'moment/locale/id' moment.locale('id') import { getOneCatatan } from '../../actions/catatan'; class ComponentToPrint extends React.Component { formData = {} constructor(props) { super(props); this.state = { }; } static getInitialProps = async ({ query }) => { return { query }; }; componentDidMount = async () => { const { query, token } = this.props; const { id } = query; const getCatatan = await getOneCatatan(token, id) const catatan = getCatatan.data this.setState({ catatan }); }; render() { const { catatan} = this.state return (
PESERTA RAPAT
{catatan ?catatan?.daftar_kehadiran_peserta?.map((value) => (
{value.nama}
)) : ""}
); } } export default ComponentToPrint