import React from 'react' import PropTypes from 'prop-types' import Isvg from 'react-inlinesvg' import hand from 'icons/hand.svg' import { FaAngleDown } from 'react-icons/lib/fa' import { btc } from 'utils' import CurrencyIcon from 'components/CurrencyIcon' import styles from './Request.scss' const Request = ({ requestform: { amount, memo, showCurrencyFilters }, ticker, setRequestAmount, setRequestMemo, setCurrency, setRequestCurrencyFilters, currencyName, currentCurrencyFilters, onRequestSubmit }) => { const onCurrencyFilterClick = (currency) => { // change the input amount setRequestAmount(btc.convert(ticker.currency, currency, amount)) setCurrency(currency) setRequestCurrencyFilters(false) } return (