aboutsummaryrefslogtreecommitdiffstats
path: root/mascara
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-05 22:10:59 +0800
committerDan <danjm.com@gmail.com>2018-04-09 21:50:03 +0800
commit077fc5eab6a835c687360b3935cfd394fd9f1cea (patch)
treea6f18283c530ce6b181dc9fd512ee538a87c2ba2 /mascara
parent1153120fe84e9d4cde47a7e416028be0fec3c61c (diff)
downloadtangerine-wallet-browser-077fc5eab6a835c687360b3935cfd394fd9f1cea.tar
tangerine-wallet-browser-077fc5eab6a835c687360b3935cfd394fd9f1cea.tar.gz
tangerine-wallet-browser-077fc5eab6a835c687360b3935cfd394fd9f1cea.tar.bz2
tangerine-wallet-browser-077fc5eab6a835c687360b3935cfd394fd9f1cea.tar.lz
tangerine-wallet-browser-077fc5eab6a835c687360b3935cfd394fd9f1cea.tar.xz
tangerine-wallet-browser-077fc5eab6a835c687360b3935cfd394fd9f1cea.tar.zst
tangerine-wallet-browser-077fc5eab6a835c687360b3935cfd394fd9f1cea.zip
Disable the first time flow import button while isLoading is true.
Diffstat (limited to 'mascara')
-rw-r--r--mascara/src/app/first-time/import-seed-phrase-screen.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/mascara/src/app/first-time/import-seed-phrase-screen.js b/mascara/src/app/first-time/import-seed-phrase-screen.js
index 86f02ceac..ba44ff91f 100644
--- a/mascara/src/app/first-time/import-seed-phrase-screen.js
+++ b/mascara/src/app/first-time/import-seed-phrase-screen.js
@@ -76,8 +76,9 @@ class ImportSeedPhraseScreen extends Component {
render () {
const { seedPhrase, password, confirmPassword } = this.state
- const { warning } = this.props
- const importDisabled = warning || !seedPhrase || !password || !confirmPassword
+ const { warning, isLoading } = this.props
+ const importDisabled = warning || !seedPhrase || !password || !confirmPassword || isLoading
+
return (
<div className="first-view-main-wrapper">
<div className="first-view-main">
@@ -152,7 +153,7 @@ class ImportSeedPhraseScreen extends Component {
}
export default connect(
- ({ appState: { warning } }) => ({ warning }),
+ ({ appState: { warning, isLoading } }) => ({ warning, isLoading }),
dispatch => ({
leaveImportSeedScreenState: () => {
dispatch(unMarkPasswordForgotten())