mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
92971d3c87
* Update eslint-plugin-import version * Convert JS files to use ESM * Update ESLint rules to check imports * Fix test:unit:global command env * Cleanup mock-dev script
24 lines
539 B
JavaScript
24 lines
539 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)
|