mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
4f0a205369
* Use eslint@6.8.0 * yarn lint:fix
21 lines
492 B
JavaScript
21 lines
492 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)
|