From 120c3ca52fa26ee32b0951b6cce3293cc371514a Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 8 Jul 2019 04:22:02 +0100 Subject: [PATCH] add warning for proceeding with a blank password --- app/src/page/firstRun/internal/wallet-page.js | 9 +++++++++ .../page/verification/internal/sync-verify-page.js | 11 +++++++++++ app/src/styles/colors.js | 1 + app/src/styles/firstRun.js | 10 ++++++++++ 4 files changed, 31 insertions(+) diff --git a/app/src/page/firstRun/internal/wallet-page.js b/app/src/page/firstRun/internal/wallet-page.js index 200e13e2..f1b1cfb9 100644 --- a/app/src/page/firstRun/internal/wallet-page.js +++ b/app/src/page/firstRun/internal/wallet-page.js @@ -115,6 +115,15 @@ class WalletPage extends React.PureComponent { + {(!this.state.password || this.state.password.trim().length === 0) && ( + + + {hasSyncedWallet + ? 'If you did not provide a password, please press Use LBRY to continue.' + : 'You can proceed without a password, but this is not recommended.'} + + + )} {(!hasSyncedWallet && this.state.password && this.state.password.trim().length) > 0 && ( diff --git a/app/src/page/verification/internal/sync-verify-page.js b/app/src/page/verification/internal/sync-verify-page.js index 790ea6e6..c53653bc 100644 --- a/app/src/page/verification/internal/sync-verify-page.js +++ b/app/src/page/verification/internal/sync-verify-page.js @@ -134,6 +134,17 @@ class SyncVerifyPage extends React.PureComponent { + + {(!this.state.password || this.state.password.trim().length === 0) && ( + + + {hasSyncedWallet + ? 'If you did not provide a password, please press Use LBRY to continue.' + : 'You can proceed without a password, but this is not recommended.'} + + + )} + {(!hasSyncedWallet && this.state.password && this.state.password.trim().length) > 0 && (