mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
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);
|