fix: #1639 use connected button to populate eth address in withdrawal dialog (#1954)

This commit is contained in:
m.ray 2022-11-04 10:42:37 +00:00 committed by GitHub
parent 7d14b95ce3
commit 750d6a31eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,6 +133,16 @@ export const WithdrawForm = ({
label={t('To (Ethereum address)')}
labelFor="ethereum-address"
>
{address && (
<UseButton
onClick={() => {
setValue('to', address);
clearErrors('to');
}}
>
{t('Use connected')}
</UseButton>
)}
<Input
id="ethereum-address"
data-testid="eth-address-input"