1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00
metamask-extension/ui/app/pages/send/send-content/add-recipient/ens-input.container.js
2020-02-15 17:04:21 -03:30

24 lines
541 B
JavaScript

import EnsInput from './ens-input.component'
import {
getCurrentNetwork,
getSendTo,
getSendToNickname,
} from '../../send.selectors'
import {
getAddressBookEntry,
} from '../../../../selectors/selectors'
import { connect } from 'react-redux'
export default connect(
(state) => {
const selectedAddress = getSendTo(state)
return {
network: getCurrentNetwork(state),
selectedAddress,
selectedName: getSendToNickname(state),
contact: getAddressBookEntry(state, selectedAddress),
}
}
)(EnsInput)