Allow repick address in contract interaction mode

This commit is contained in:
Mati Dastugue 2020-07-03 18:00:39 -03:00
parent 3fdac537ec
commit 0f4f1077fe
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,11 @@ const EthAddressInput = ({
closeQrModal() closeQrModal()
} }
const handleInputChange = (event: { target: { value?: string } | null }) => {
const { value } = event.target
setSelectedEntry({ address: value })
}
return ( return (
<> <>
<Row margin="md"> <Row margin="md">
@ -65,6 +70,7 @@ const EthAddressInput = ({
component={TextField} component={TextField}
name={name} name={name}
placeholder={text} placeholder={text}
onChange={handleInputChange}
testId={name} testId={name}
text={text} text={text}
type="text" type="text"