1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 19:10:22 +01:00
metamask-extension/ui/pages/send/send-content/add-recipient/ens-input.container.js
2021-06-23 16:35:25 -05:00

19 lines
556 B
JavaScript

import { debounce } from 'lodash';
import { connect } from 'react-redux';
import {
lookupEnsName,
initializeEnsSlice,
resetResolution,
} from '../../../../ducks/ens';
import EnsInput from './ens-input.component';
function mapDispatchToProps(dispatch) {
return {
lookupEnsName: debounce((ensName) => dispatch(lookupEnsName(ensName)), 150),
initializeEnsSlice: () => dispatch(initializeEnsSlice()),
resetEnsResolution: debounce(() => dispatch(resetResolution()), 300),
};
}
export default connect(null, mapDispatchToProps)(EnsInput);