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