import React from 'react' import PropTypes from 'prop-types' import CurrencyIcon from 'components/CurrencyIcon' import styles from './RequestForm.scss' const RequestForm = ({ requestform: { amount, memo }, currency, crypto, setRequestAmount, setRequestMemo, onRequestSubmit }) => (
1 ? (amount.length * 15) - 5 : 25}%`, fontSize: `${190 - (amount.length ** 2)}px` }} value={amount} onChange={event => setRequestAmount(event.target.value)} id='amount' />
setRequestMemo(event.target.value)} id='memo' />
Request
) RequestForm.propTypes = { requestform: PropTypes.object.isRequired, currency: PropTypes.string.isRequired, crypto: PropTypes.string.isRequired, setRequestAmount: PropTypes.func.isRequired, setRequestMemo: PropTypes.func.isRequired, onRequestSubmit: PropTypes.func.isRequired } export default RequestForm