mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
c1e3c229bc
See [`import/order`](https://eslint.org/docs/rules/import/order) for more information. This change enables `import/order` and fixes the issues raised by the rule.
22 lines
663 B
JavaScript
22 lines
663 B
JavaScript
import { connect } from 'react-redux'
|
|
import { getMetaMaskAccounts, getSendTokenAddress } from '../../../../selectors'
|
|
import { updateSendToken } from '../../../../store/actions'
|
|
import SendAssetRow from './send-asset-row.component'
|
|
|
|
function mapStateToProps (state) {
|
|
return {
|
|
tokens: state.metamask.tokens,
|
|
selectedAddress: state.metamask.selectedAddress,
|
|
sendTokenAddress: getSendTokenAddress(state),
|
|
accounts: getMetaMaskAccounts(state),
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
return {
|
|
setSendToken: (token) => dispatch(updateSendToken(token)),
|
|
}
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendAssetRow)
|