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.
24 lines
586 B
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)),
|
|
};
|
|
}
|
|
|