import React, { Component } from "react"; import { Paper, FormControl , Grid, Typography, FormHelperText, TextField} from "@material-ui/core" import QRCode from "react-qr-code" export default class TradeBox extends Component { constructor(props) { super(props); // props.state = null this.data = this.props.data } showInvoice=()=>{ return ( Robots around here usually show commitment {this.data.isMaker ? Lock {this.data.bondSatoshis} Sats to PUBLISH order : Lock {this.data.bondSatoshis} Sats to TAKE the order } ); } render() { return ( TradeBox {this.data.bondInvoice ? this.showInvoice() : ""} ); } }