From f820064be11a358613739b23b22068a0c435df03 Mon Sep 17 00:00:00 2001 From: pkova Date: Wed, 9 Jun 2021 19:15:58 +0300 Subject: [PATCH] btc: default wallet creation with bridge, add better styled warnings --- pkg/btc-wallet/src/js/components/lib/send.js | 21 ++-- .../src/js/components/lib/walletModal.js | 119 +++++++++--------- 2 files changed, 69 insertions(+), 71 deletions(-) diff --git a/pkg/btc-wallet/src/js/components/lib/send.js b/pkg/btc-wallet/src/js/components/lib/send.js index 90cf6fee8e..00b4cf9955 100644 --- a/pkg/btc-wallet/src/js/components/lib/send.js +++ b/pkg/btc-wallet/src/js/components/lib/send.js @@ -440,19 +440,14 @@ export default class Send extends Component { style={{cursor: signReady ? 'pointer' : 'default'}} /> {signMethod === 'masterTicket' && - - - - - To reduce the exposure of your master ticket we recommend signing transactions with Bridge - - - + + + + We recommend that you sign transactions using Bridge to protect your master ticket. + } diff --git a/pkg/btc-wallet/src/js/components/lib/walletModal.js b/pkg/btc-wallet/src/js/components/lib/walletModal.js index 0374e84ddc..49796cd11e 100644 --- a/pkg/btc-wallet/src/js/components/lib/walletModal.js +++ b/pkg/btc-wallet/src/js/components/lib/walletModal.js @@ -22,7 +22,7 @@ export default class WalletModal extends Component { super(props); this.state = { - mode: 'masterTicket', + mode: 'xpub', masterTicket: '', confirmedMasterTicket: '', xpub: '', @@ -103,13 +103,15 @@ export default class WalletModal extends Component { Step 2 of 2: Import your extended public key - - - To begin, you'll need to derive an XPub Bitcoin address using your - master ticket. - Learn More + + + + We recommend that you import your wallet using Bridge to protect your master ticket. - + } - {this.state.confirmingMasterTicket ? 'Confirm Master Key' : 'Master Key'} + {this.state.confirmingMasterTicket ? 'Confirm Master Ticket' : 'Master Ticket'} @@ -155,37 +157,38 @@ export default class WalletModal extends Component { } - - +