mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-02 21:28:12 +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 });
|
this.setState({ [event.target.name]: event.target.value });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearSign =() => {
|
||||||
|
this.setState({
|
||||||
|
signMessage: '',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
clearVerify = () => {
|
||||||
|
this.setState({
|
||||||
|
verifyAddress: '',
|
||||||
|
verifyMessage: '',
|
||||||
|
verifySignature: '',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
signVerifyActions,
|
signVerifyActions,
|
||||||
@ -120,7 +134,7 @@ class SignVerify extends Component {
|
|||||||
</Row>
|
</Row>
|
||||||
<RowButtons>
|
<RowButtons>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => this.clearSign()}
|
onClick={this.clearSign}
|
||||||
isWhite
|
isWhite
|
||||||
>Clear
|
>Clear
|
||||||
</Button>
|
</Button>
|
||||||
@ -163,7 +177,7 @@ class SignVerify extends Component {
|
|||||||
</Row>
|
</Row>
|
||||||
<RowButtons>
|
<RowButtons>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => this.clearVerify()}
|
onClick={this.clearVerify}
|
||||||
isWhite
|
isWhite
|
||||||
>Clear
|
>Clear
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user