mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
e8fa0b7b5d
* consolidate & dedupe send selectors
21 lines
491 B
JavaScript
21 lines
491 B
JavaScript
import { connect } from 'react-redux'
|
|
import EnsInput from './ens-input.component'
|
|
import {
|
|
getCurrentNetwork,
|
|
getSendTo,
|
|
getSendToNickname,
|
|
getAddressBookEntry,
|
|
} from '../../../../selectors'
|
|
|
|
export default connect(
|
|
(state) => {
|
|
const selectedAddress = getSendTo(state)
|
|
return {
|
|
network: getCurrentNetwork(state),
|
|
selectedAddress,
|
|
selectedName: getSendToNickname(state),
|
|
contact: getAddressBookEntry(state, selectedAddress),
|
|
}
|
|
}
|
|
)(EnsInput)
|