1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 08:09:15 +01:00
metamask-extension/ui/pages/send/send-content/add-recipient/domain-input.container.js

25 lines
637 B
JavaScript
Raw Normal View History

import { debounce } from 'lodash';
import { connect } from 'react-redux';
import {
lookupEnsName,
initializeDomainSlice,
resetDomainResolution,
} from '../../../../ducks/domains';
import DomainInput from './domain-input.component';
function mapDispatchToProps(dispatch) {
return {
lookupEnsName: debounce(
(domainName) => dispatch(lookupEnsName(domainName)),
150,
),
initializeDomainSlice: () => dispatch(initializeDomainSlice()),
resetDomainResolution: debounce(
() => dispatch(resetDomainResolution()),
300,
),
};
}
export default connect(null, mapDispatchToProps)(DomainInput);