A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/pages/send/send-content/send-amount-row/send-amount-row.container.js

24 lines
586 B

import { connect } from 'react-redux';
import {
updateSendAmount,
getSendAmount,
sendAmountIsInError,
getSendAsset,
} from '../../../../ducks/send';
import SendAmountRow from './send-amount-row.component';
export default connect(mapStateToProps, mapDispatchToProps)(SendAmountRow);
function mapStateToProps(state) {
return {
amount: getSendAmount(state),
inError: sendAmountIsInError(state),
asset: getSendAsset(state),
};
}
function mapDispatchToProps(dispatch) {
return {
updateSendAmount: (newAmount) => dispatch(updateSendAmount(newAmount)),
};
}