mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
2cb807dc20
* fix up ens/hex address validation error handling * fix lint/tests
19 lines
562 B
JavaScript
19 lines
562 B
JavaScript
import { debounce } from 'lodash';
|
|
import { connect } from 'react-redux';
|
|
import {
|
|
lookupEnsName,
|
|
initializeEnsSlice,
|
|
resetEnsResolution,
|
|
} 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(resetEnsResolution()), 300),
|
|
};
|
|
}
|
|
|
|
export default connect(null, mapDispatchToProps)(EnsInput);
|