import React from 'react' import PropTypes from 'prop-types' import { btc } from 'utils' import styles from './TransactionForm.scss' const TransactionForm = ({ updatePayReq, pay_req, loadingRoutes, payReqRoutes, setCurrentRoute, currentRoute }) => (
updatePayReq(event.target.value)} />
{ loadingRoutes &&

calculating all routes...

}
) TransactionForm.propTypes = { updatePayReq: PropTypes.func.isRequired, pay_req: PropTypes.string.isRequired, loadingRoutes: PropTypes.bool.isRequired, payReqRoutes: PropTypes.array.isRequired, setCurrentRoute: PropTypes.func.isRequired, currentRoute: PropTypes.object.isRequired } export default TransactionForm