|
|
@ -5,6 +5,7 @@ import classnames from 'classnames' |
|
|
|
import { withRouter } from 'react-router-dom' |
|
|
|
import { withRouter } from 'react-router-dom' |
|
|
|
import { compose } from 'recompose' |
|
|
|
import { compose } from 'recompose' |
|
|
|
import Identicon from '../../../../ui/app/components/identicon' |
|
|
|
import Identicon from '../../../../ui/app/components/identicon' |
|
|
|
|
|
|
|
import {exportAsFile} from '../../../../ui/app/util' |
|
|
|
import Breadcrumbs from './breadcrumbs' |
|
|
|
import Breadcrumbs from './breadcrumbs' |
|
|
|
import LoadingScreen from './loading-screen' |
|
|
|
import LoadingScreen from './loading-screen' |
|
|
|
import { DEFAULT_ROUTE, INITIALIZE_CONFIRM_SEED_ROUTE } from '../../../../ui/app/routes' |
|
|
|
import { DEFAULT_ROUTE, INITIALIZE_CONFIRM_SEED_ROUTE } from '../../../../ui/app/routes' |
|
|
@ -65,6 +66,12 @@ class BackupPhraseScreen extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exportSeedWords = () => { |
|
|
|
|
|
|
|
const { seedWords } = this.props |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exportAsFile('MetaMask Secret Backup Phrase', seedWords, 'text/plain') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
renderSecretWordsContainer () { |
|
|
|
renderSecretWordsContainer () { |
|
|
|
const { isShowingSecret } = this.state |
|
|
|
const { isShowingSecret } = this.state |
|
|
|
|
|
|
|
|
|
|
@ -119,6 +126,13 @@ class BackupPhraseScreen extends Component { |
|
|
|
<div className="backup-phrase__tips-text"> |
|
|
|
<div className="backup-phrase__tips-text"> |
|
|
|
Memorize this phrase. |
|
|
|
Memorize this phrase. |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="backup-phrase__tips-text"> |
|
|
|
|
|
|
|
<strong> |
|
|
|
|
|
|
|
<a className="backup-phrase__tips-text--link backup-phrase__tips-text--strong" onClick={this.exportSeedWords}> |
|
|
|
|
|
|
|
Download this Secret Backup Phrase |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</strong> and keep it stored safely on an external encrypted hard drive or storage medium. |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="backup-phrase__next-button"> |
|
|
|
<div className="backup-phrase__next-button"> |
|
|
|
<button |
|
|
|
<button |
|
|
|