|
|
|
@ -1,12 +1,14 @@ |
|
|
|
|
import React, { PureComponent } from 'react'; |
|
|
|
|
import PropTypes from 'prop-types'; |
|
|
|
|
import classnames from 'classnames'; |
|
|
|
|
import Box from '../../../../components/ui/box'; |
|
|
|
|
import LockIcon from '../../../../components/ui/lock-icon'; |
|
|
|
|
import Button from '../../../../components/ui/button'; |
|
|
|
|
import Snackbar from '../../../../components/ui/snackbar'; |
|
|
|
|
import { |
|
|
|
|
INITIALIZE_CONFIRM_SEED_PHRASE_ROUTE, |
|
|
|
|
DEFAULT_ROUTE, |
|
|
|
|
INITIALIZE_SEED_PHRASE_INTRO_ROUTE, |
|
|
|
|
} from '../../../../helpers/constants/routes'; |
|
|
|
|
import { exportAsFile } from '../../../../helpers/utils/util'; |
|
|
|
|
import { returnToOnboardingInitiator } from '../../onboarding-initiator-util'; |
|
|
|
@ -123,12 +125,23 @@ export default class RevealSeedPhrase extends PureComponent { |
|
|
|
|
render() { |
|
|
|
|
const { t } = this.context; |
|
|
|
|
const { isShowingSeedPhrase } = this.state; |
|
|
|
|
const { onboardingInitiator } = this.props; |
|
|
|
|
const { history, onboardingInitiator } = this.props; |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className="reveal-seed-phrase"> |
|
|
|
|
<div className="seed-phrase__sections"> |
|
|
|
|
<div className="seed-phrase__main"> |
|
|
|
|
<Box marginBottom={4}> |
|
|
|
|
<a |
|
|
|
|
href="#" |
|
|
|
|
onClick={(e) => { |
|
|
|
|
e.preventDefault(); |
|
|
|
|
history.push(INITIALIZE_SEED_PHRASE_INTRO_ROUTE); |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
{`< ${t('back')}`} |
|
|
|
|
</a> |
|
|
|
|
</Box> |
|
|
|
|
<div className="first-time-flow__header"> |
|
|
|
|
{t('secretBackupPhrase')} |
|
|
|
|
</div> |
|
|
|
|