viam-projectv-scan
Version:
ViaCheck deposit application
64 lines (60 loc) • 1.78 kB
JavaScript
// import React from "react";
// import ReactToPrint from "react-to-print";
// class ComponentToPrint extends React.Component {
// constructor(props) {
// super(props);
// }
// render() {
// return (
// <div width="80">
// <table className="print" border="0" width="80">
// <thead>
// <tr>
// <th>Check Number</th>
// <th>Status</th>
// <th>Amount</th>
// <th />
// </tr>
// </thead>
// <tbody>{
// this.props.receipt.map((check,index) =>
// (<tr key={index}>
// <td>
// {check.checkNumber}
// </td>
// <td>
// {check.checkStatusDescription}
// </td>
// <td>
// {check.amount}
// </td>
// </tr>)
// )
// }
// </tbody>
// </table>
// <br/>
// <div>
// Scanned Checks : {this.props.receipt.length}
// </div>
// </div>
// );
// }
// }
// class print extends React.Component {
// constructor(props) {
// super(props);
// }
// render() {
// return (
// <div>
// <ReactToPrint
// trigger={() => <button>Print</button>}
// content={() => this.componentRef}
// />
// <ComponentToPrint ref={el => (this.componentRef = el) } receipt = {this.props.receipt} />
// </div>
// );
// }
// }
// export default print;