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>feature/default_network_editable
parent
b675a12dbf
commit
086003555c
@ -0,0 +1,24 @@ |
||||
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); |
@ -0,0 +1 @@ |
||||
export { default } from './domain-input.container'; |
@ -1,18 +0,0 @@ |
||||
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); |
@ -1 +0,0 @@ |
||||
export { default } from './ens-input.container'; |
Loading…
Reference in new issue