mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 15:50:28 +01:00
086003555c
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>
25 lines
637 B
JavaScript
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);
|