mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
490d3b8d40
* Integrate controllers/tokensController * address rebase issues * small cleanup * addressing feedback * more feedback
29 lines
902 B
JavaScript
29 lines
902 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getNativeCurrency } from '../../../../ducks/metamask/metamask';
|
|
import {
|
|
getMetaMaskAccounts,
|
|
getNativeCurrencyImage,
|
|
} from '../../../../selectors';
|
|
import { updateSendAsset, getSendAssetAddress } from '../../../../ducks/send';
|
|
import SendAssetRow from './send-asset-row.component';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
tokens: state.metamask.tokens,
|
|
selectedAddress: state.metamask.selectedAddress,
|
|
sendAssetAddress: getSendAssetAddress(state),
|
|
accounts: getMetaMaskAccounts(state),
|
|
nativeCurrency: getNativeCurrency(state),
|
|
nativeCurrencyImage: getNativeCurrencyImage(state),
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
updateSendAsset: ({ type, details }) =>
|
|
dispatch(updateSendAsset({ type, details })),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendAssetRow);
|