import React, { Component } from 'react' import PropTypes from 'prop-types' import styles from './PayForm.scss' class PayForm extends Component { render() { const { payform, isOnchain, isLn, inputCaption, setPayAmount, setPayInput, onPaySubmit } = this.props return (
this.amountInput = input} // eslint-disable-line size='' style={ isLn ? { width: '75%', fontSize: '85px' } : { width: `${amount.length > 1 ? (amount.length * 15) - 5 : 25}%`, fontSize: `${190 - (amount.length ** 2)}px` } } value={payform.amount} onChange={event => setPayAmount(event.target.value)} id='amount' readOnly={isLn} />
setPayInput(event.target.value)} id='paymentRequest' />
Pay
) } } PayForm.propTypes = { } export default PayForm