blob: 2ca5fd8ec8a457cb99f2b7bc734612a86bda6eee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import Button from '../../../button'
import { DEFAULT_ROUTE } from '../../../../routes'
export default class EndOfFlowScreen extends PureComponent {
static contextTypes = {
t: PropTypes.func,
}
static propTypes = {
history: PropTypes.object,
completeOnboarding: PropTypes.func,
}
render () {
const { t } = this.context
const { history, completeOnboarding } = this.props
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>
<div className="first-time-flow__text-block end-of-flow__text-3">
{ '• ' + t('endOfFlowMessage3') }
</div>
<div className="first-time-flow__text-block end-of-flow__text-4">
{ '• ' + t('endOfFlowMessage4') }
</div>
<div className="first-time-flow__text-block end-of-flow__text-3">
{ t('endOfFlowMessage5') }
</div>
<div className="first-time-flow__text-block end-of-flow__text-3">
{ '*' + t('endOfFlowMessage6') }
</div>
<Button
type="confirm"
className="first-time-flow__button"
onClick={async () => {
await completeOnboarding()
history.push(DEFAULT_ROUTE)
}}
>
{ 'All Done' }
</Button>
</div>
)
}
}
|