mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
25 lines
586 B
JavaScript
25 lines
586 B
JavaScript
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)),
|
|
};
|
|
}
|