You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
562 B
18 lines
562 B
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);
|
|
|