2019-01-23 16:25:34 +01:00
|
|
|
import React, { PureComponent } from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
2019-03-22 00:03:30 +01:00
|
|
|
import Button from '../../../../components/ui/button'
|
|
|
|
import { INITIALIZE_END_OF_FLOW_ROUTE } from '../../../../helpers/constants/routes'
|
2019-01-23 16:25:34 +01:00
|
|
|
|
|
|
|
export default class UniqueImageScreen extends PureComponent {
|
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
2019-03-05 16:45:01 +01:00
|
|
|
metricsEvent: PropTypes.func,
|
2019-01-23 16:25:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
history: PropTypes.object,
|
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
|
|
|
const { t } = this.context
|
2019-03-05 16:45:01 +01:00
|
|
|
const { history } = this.props
|
2019-01-23 16:25:34 +01:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
2019-02-27 15:46:41 +01:00
|
|
|
<img
|
|
|
|
src="/images/sleuth.svg"
|
|
|
|
height={42}
|
|
|
|
width={42}
|
2019-01-23 16:25:34 +01:00
|
|
|
/>
|
|
|
|
<div className="first-time-flow__header">
|
2019-02-27 15:46:41 +01:00
|
|
|
{ t('protectYourKeys') }
|
2019-01-23 16:25:34 +01:00
|
|
|
</div>
|
|
|
|
<div className="first-time-flow__text-block">
|
2019-02-27 15:46:41 +01:00
|
|
|
{ t('protectYourKeysMessage1') }
|
2019-01-23 16:25:34 +01:00
|
|
|
</div>
|
|
|
|
<div className="first-time-flow__text-block">
|
2019-02-27 15:46:41 +01:00
|
|
|
{ t('protectYourKeysMessage2') }
|
2019-01-23 16:25:34 +01:00
|
|
|
</div>
|
|
|
|
<Button
|
2019-04-16 21:35:22 +02:00
|
|
|
type="primary"
|
2019-01-23 16:25:34 +01:00
|
|
|
className="first-time-flow__button"
|
2019-02-27 15:46:41 +01:00
|
|
|
onClick={() => {
|
2019-03-05 16:45:01 +01:00
|
|
|
this.context.metricsEvent({
|
|
|
|
eventOpts: {
|
|
|
|
category: 'Onboarding',
|
|
|
|
action: 'Agree to Phishing Warning',
|
|
|
|
name: 'Agree to Phishing Warning',
|
|
|
|
},
|
|
|
|
})
|
|
|
|
history.push(INITIALIZE_END_OF_FLOW_ROUTE)
|
2019-02-27 15:46:41 +01:00
|
|
|
}}
|
2019-01-23 16:25:34 +01:00
|
|
|
>
|
|
|
|
{ t('next') }
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|