|
@@ -11,6 +11,7 @@ import id from 'date-fns/locale/id';
|
|
|
import { getAutoSave, inputAutoSave } from "@/actions/autosave";
|
|
import { getAutoSave, inputAutoSave } from "@/actions/autosave";
|
|
|
import ComponentToPrint from "./SuratBA_A";
|
|
import ComponentToPrint from "./SuratBA_A";
|
|
|
import ReactToPrint, { PrintContextConsumer } from 'react-to-print';
|
|
import ReactToPrint, { PrintContextConsumer } from 'react-to-print';
|
|
|
|
|
+import Link from "next/dist/client/link";
|
|
|
|
|
|
|
|
let Dropzone = null;
|
|
let Dropzone = null;
|
|
|
class DropzoneWrapper extends Component {
|
|
class DropzoneWrapper extends Component {
|
|
@@ -344,9 +345,15 @@ export class UploadSurat extends Component {
|
|
|
<ReactToPrint
|
|
<ReactToPrint
|
|
|
trigger={() => {
|
|
trigger={() => {
|
|
|
return <span>
|
|
return <span>
|
|
|
|
|
+ {/* <Link
|
|
|
|
|
+ href={{
|
|
|
|
|
+ pathname: "/app/sanksi/proses",
|
|
|
|
|
+ query: { id: this.props.query.id },
|
|
|
|
|
+ }}> */}
|
|
|
<Button color className="btn-labeled-4 mt-0">
|
|
<Button color className="btn-labeled-4 mt-0">
|
|
|
<h5 className="p-0 mt-2"><em className="fas fa-download mr-2" />Print dan Download</h5>
|
|
<h5 className="p-0 mt-2"><em className="fas fa-download mr-2" />Print dan Download</h5>
|
|
|
</Button>
|
|
</Button>
|
|
|
|
|
+ {/* </Link> */}
|
|
|
</span>
|
|
</span>
|
|
|
}}
|
|
}}
|
|
|
content={() => this.componentRef}
|
|
content={() => this.componentRef}
|