|
|
@ -3,6 +3,7 @@ import PropTypes from 'prop-types' |
|
|
|
|
|
|
|
import FaAngleDown from 'react-icons/lib/fa/angle-down' |
|
|
|
|
|
|
|
import AmountInput from 'components/AmountInput' |
|
|
|
import styles from './SubmitChannelForm.scss' |
|
|
|
|
|
|
|
class SubmitChannelForm extends React.Component { |
|
|
@ -16,6 +17,8 @@ class SubmitChannelForm extends React.Component { |
|
|
|
updateContactCapacity, |
|
|
|
openChannel, |
|
|
|
|
|
|
|
ticker, |
|
|
|
|
|
|
|
toggleCurrencyProps: { |
|
|
|
setContactsCurrencyFilters, |
|
|
|
showCurrencyFilters, |
|
|
@ -73,14 +76,11 @@ class SubmitChannelForm extends React.Component { |
|
|
|
|
|
|
|
<section className={styles.amount}> |
|
|
|
<div className={styles.input}> |
|
|
|
<input |
|
|
|
type="number" |
|
|
|
min="0" |
|
|
|
size="" |
|
|
|
placeholder="0.00000000" |
|
|
|
value={contactCapacity || ''} |
|
|
|
onChange={event => updateContactCapacity(event.target.value)} |
|
|
|
<AmountInput |
|
|
|
id="amount" |
|
|
|
amount={contactCapacity} |
|
|
|
currency={ticker.currency} |
|
|
|
onChangeEvent={updateContactCapacity} |
|
|
|
/> |
|
|
|
<div className={styles.currency}> |
|
|
|
<section |
|
|
@ -127,6 +127,8 @@ SubmitChannelForm.propTypes = { |
|
|
|
updateContactCapacity: PropTypes.func.isRequired, |
|
|
|
openChannel: PropTypes.func.isRequired, |
|
|
|
|
|
|
|
ticker: PropTypes.object.isRequired, |
|
|
|
|
|
|
|
toggleCurrencyProps: PropTypes.object.isRequired |
|
|
|
} |
|
|
|
|
|
|
|