1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 15:50:28 +01:00
metamask-extension/ui/pages/send/send-content/add-recipient/domain-input.container.js
Ben Behrman 086003555c
Make ENS named elements domain generic (#16166)
Co-authored-by: Olaf Tomalka <olaf.tomalka@gmail.com>
Co-authored-by: Vincent Shadbolt <vince.shadbolt@gmail.com>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: Brad Decker <git@braddecker.dev>
2022-11-21 09:19:11 -06:00

25 lines
637 B
JavaScript

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);