You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
3.0 KiB
94 lines
3.0 KiB
6 years ago
|
import React, { PureComponent } from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
6 years ago
|
import Button from '../../../components/ui/button'
|
||
|
import { DEFAULT_ROUTE } from '../../../helpers/constants/routes'
|
||
6 years ago
|
|
||
|
export default class EndOfFlowScreen extends PureComponent {
|
||
|
static contextTypes = {
|
||
|
t: PropTypes.func,
|
||
6 years ago
|
metricsEvent: PropTypes.func,
|
||
6 years ago
|
}
|
||
|
|
||
|
static propTypes = {
|
||
|
history: PropTypes.object,
|
||
|
completeOnboarding: PropTypes.func,
|
||
6 years ago
|
completionMetaMetricsName: PropTypes.string,
|
||
6 years ago
|
}
|
||
|
|
||
|
render () {
|
||
|
const { t } = this.context
|
||
6 years ago
|
const { history, completeOnboarding, completionMetaMetricsName } = this.props
|
||
6 years ago
|
|
||
|
return (
|
||
|
<div className="end-of-flow">
|
||
|
<div className="app-header__logo-container">
|
||
|
<img
|
||
|
className="app-header__metafox-logo app-header__metafox-logo--horizontal"
|
||
|
src="/images/logo/metamask-logo-horizontal.svg"
|
||
|
height={30}
|
||
|
/>
|
||
|
<img
|
||
|
className="app-header__metafox-logo app-header__metafox-logo--icon"
|
||
|
src="/images/logo/metamask-fox.svg"
|
||
|
height={42}
|
||
|
width={42}
|
||
|
/>
|
||
|
</div>
|
||
|
<div className="end-of-flow__emoji">🎉</div>
|
||
|
<div className="first-time-flow__header">
|
||
|
{ t('congratulations') }
|
||
|
</div>
|
||
|
<div className="first-time-flow__text-block end-of-flow__text-1">
|
||
|
{ t('endOfFlowMessage1') }
|
||
|
</div>
|
||
|
<div className="first-time-flow__text-block end-of-flow__text-2">
|
||
|
{ t('endOfFlowMessage2') }
|
||
|
</div>
|
||
6 years ago
|
<div className="end-of-flow__text-3">
|
||
6 years ago
|
{ '• ' + t('endOfFlowMessage3') }
|
||
|
</div>
|
||
6 years ago
|
<div className="end-of-flow__text-3">
|
||
6 years ago
|
{ '• ' + t('endOfFlowMessage4') }
|
||
|
</div>
|
||
6 years ago
|
<div className="end-of-flow__text-3">
|
||
|
{ '• ' + t('endOfFlowMessage5') }
|
||
|
</div>
|
||
|
<div className="end-of-flow__text-3">
|
||
|
{ '• ' + t('endOfFlowMessage6') }
|
||
6 years ago
|
</div>
|
||
6 years ago
|
<div className="end-of-flow__text-3">
|
||
|
{ '• ' + t('endOfFlowMessage7') }
|
||
|
</div>
|
||
|
<div className="first-time-flow__text-block end-of-flow__text-4">
|
||
|
*MetaMask cannot recover your seedphrase. <a
|
||
|
href="https://metamask.zendesk.com/hc/en-us/articles/360015489591-Basic-Safety-Tips"
|
||
|
target="_blank"
|
||
|
rel="noopener noreferrer"
|
||
|
>
|
||
|
<span className="first-time-flow__link-text">
|
||
|
Learn More
|
||
|
</span>
|
||
|
</a>.
|
||
6 years ago
|
</div>
|
||
|
<Button
|
||
|
type="confirm"
|
||
|
className="first-time-flow__button"
|
||
|
onClick={async () => {
|
||
|
await completeOnboarding()
|
||
6 years ago
|
this.context.metricsEvent({
|
||
|
eventOpts: {
|
||
|
category: 'Onboarding',
|
||
|
action: 'Onboarding Complete',
|
||
|
name: completionMetaMetricsName,
|
||
|
},
|
||
|
})
|
||
6 years ago
|
history.push(DEFAULT_ROUTE)
|
||
|
}}
|
||
|
>
|
||
|
{ 'All Done' }
|
||
|
</Button>
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
|
}
|