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:
parent
18a424c214
commit
50176ebbdf
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user