|
|
@ -76,8 +76,9 @@ class ImportSeedPhraseScreen extends Component { |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
|
const { seedPhrase, password, confirmPassword } = this.state |
|
|
|
const { seedPhrase, password, confirmPassword } = this.state |
|
|
|
const { warning } = this.props |
|
|
|
const { warning, isLoading } = this.props |
|
|
|
const importDisabled = warning || !seedPhrase || !password || !confirmPassword |
|
|
|
const importDisabled = warning || !seedPhrase || !password || !confirmPassword || isLoading |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="first-view-main-wrapper"> |
|
|
|
<div className="first-view-main-wrapper"> |
|
|
|
<div className="first-view-main"> |
|
|
|
<div className="first-view-main"> |
|
|
@ -152,7 +153,7 @@ class ImportSeedPhraseScreen extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export default connect( |
|
|
|
export default connect( |
|
|
|
({ appState: { warning } }) => ({ warning }), |
|
|
|
({ appState: { warning, isLoading } }) => ({ warning, isLoading }), |
|
|
|
dispatch => ({ |
|
|
|
dispatch => ({ |
|
|
|
leaveImportSeedScreenState: () => { |
|
|
|
leaveImportSeedScreenState: () => { |
|
|
|
dispatch(unMarkPasswordForgotten()) |
|
|
|
dispatch(unMarkPasswordForgotten()) |
|
|
|