From 50176ebbdfc2c1d38c732570415302bab9014603 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Thu, 18 Oct 2018 14:33:17 +0200 Subject: [PATCH] Added clear option --- .../Wallet/views/Account/SignVerify/index.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/views/Wallet/views/Account/SignVerify/index.js b/src/views/Wallet/views/Account/SignVerify/index.js index 96c641a7..a3e93fc6 100644 --- a/src/views/Wallet/views/Account/SignVerify/index.js +++ b/src/views/Wallet/views/Account/SignVerify/index.js @@ -76,6 +76,20 @@ class SignVerify extends Component { this.setState({ [event.target.name]: event.target.value }); } + clearSign =() => { + this.setState({ + signMessage: '', + }); + } + + clearVerify = () => { + this.setState({ + verifyAddress: '', + verifyMessage: '', + verifySignature: '', + }); + } + render() { const { signVerifyActions, @@ -120,7 +134,7 @@ class SignVerify extends Component { @@ -163,7 +177,7 @@ class SignVerify extends Component {