mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-22 17:22:05 -07:00
feat(wallet-info): blur private key
This commit is contained in:
@@ -18,16 +18,16 @@ class WalletInfo extends React.Component {
|
||||
slpAddress: '',
|
||||
legacyAddress: '',
|
||||
hdPath: '',
|
||||
blurredMnemonic: true,
|
||||
blurredMnemonic: true,
|
||||
blurredPrivateKey: true
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
const eyeIcon = {
|
||||
mnemonic: _this.state.blurredMnemonic ? 'eye-slash' : 'eye',
|
||||
privateKey: _this.state.blurredPrivateKey ? 'eye-slash' : 'eye',
|
||||
}
|
||||
mnemonic: _this.state.blurredMnemonic ? 'eye-slash' : 'eye',
|
||||
privateKey: _this.state.blurredPrivateKey ? 'eye-slash' : 'eye'
|
||||
}
|
||||
|
||||
return (
|
||||
<Row>
|
||||
@@ -179,6 +179,7 @@ class WalletInfo extends React.Component {
|
||||
blurredMnemonic: (!_this.state.blurredMnemonic)
|
||||
})
|
||||
}
|
||||
|
||||
blurPrivateKey () {
|
||||
_this.setState({
|
||||
blurredPrivateKey: (!_this.state.blurredPrivateKey)
|
||||
|
||||
Reference in New Issue
Block a user