andi 1 жил өмнө
parent
commit
66e3a51d04

+ 0 - 3
components/PerpanjanganSanksi/TableRiwayatCatatan.js

@@ -5,9 +5,6 @@ import moment from "moment";
 import { ENV } from '../../env.js';
 import CopyToClipboard from "react-copy-to-clipboard";
 import { useState } from "react";
-import { EditorState, ContentState, convertFromHTML, convertToRaw, convertFromRaw } from 'draft-js';
-import ReactToPrint from "react-to-print";
-import ComponentToPrint from "./presensi_print";
 import { deleteCatatan } from "../../actions/catatan.js";
 import { toast } from "react-toastify";
 import { useSelector } from "react-redux";

+ 0 - 2
pages/app/perpanjangan-sanksi/editfile.js

@@ -119,9 +119,7 @@ class EditFile extends Component {
     };
     handleGeneratePDF = () => {
         const rawContent = convertToRaw(this.state.editorState.getCurrentContent());
-        console.log(rawContent)
         const stateToPdfMake = new StateToPdfMake(rawContent);
-        console.log(stateToPdfMake.generate());
 
         pdfMake.createPdf(stateToPdfMake.generate()).download();
     };

+ 0 - 2
pages/app/perpanjangan-sanksi/readOnly.js

@@ -120,9 +120,7 @@ class EditFile extends Component {
     };
     handleGeneratePDF = () => {
         const rawContent = convertToRaw(this.state.editorState.getCurrentContent());
-        console.log(rawContent)
         const stateToPdfMake = new StateToPdfMake(rawContent);
-        console.log(stateToPdfMake.generate());
 
         pdfMake.createPdf(stateToPdfMake.generate()).download();
     };