1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-01 04:38:15 +00:00

Added clear option

This commit is contained in:
Vladimir Volek 2018-10-18 14:33:17 +02:00
parent 18a424c214
commit 50176ebbdf

View File

@ -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 {
</Row>
<RowButtons>
<Button
onClick={() => this.clearSign()}
onClick={this.clearSign}
isWhite
>Clear
</Button>
@ -163,7 +177,7 @@ class SignVerify extends Component {
</Row>
<RowButtons>
<Button
onClick={() => this.clearVerify()}
onClick={this.clearVerify}
isWhite
>Clear
</Button>