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.
56 lines
1.4 KiB
56 lines
1.4 KiB
6 years ago
|
import React, { PureComponent } from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
6 years ago
|
import Button from '../../../../components/ui/button'
|
||
|
import { INITIALIZE_END_OF_FLOW_ROUTE } from '../../../../helpers/constants/routes'
|
||
6 years ago
|
|
||
|
export default class UniqueImageScreen extends PureComponent {
|
||
|
static contextTypes = {
|
||
|
t: PropTypes.func,
|
||
6 years ago
|
metricsEvent: PropTypes.func,
|
||
6 years ago
|
}
|
||
|
|
||
|
static propTypes = {
|
||
|
history: PropTypes.object,
|
||
|
}
|
||
|
|
||
|
render () {
|
||
|
const { t } = this.context
|
||
6 years ago
|
const { history } = this.props
|
||
6 years ago
|
|
||
|
return (
|
||
|
<div>
|
||
6 years ago
|
<img
|
||
|
src="/images/sleuth.svg"
|
||
|
height={42}
|
||
|
width={42}
|
||
6 years ago
|
/>
|
||
|
<div className="first-time-flow__header">
|
||
6 years ago
|
{ t('protectYourKeys') }
|
||
6 years ago
|
</div>
|
||
|
<div className="first-time-flow__text-block">
|
||
6 years ago
|
{ t('protectYourKeysMessage1') }
|
||
6 years ago
|
</div>
|
||
|
<div className="first-time-flow__text-block">
|
||
6 years ago
|
{ t('protectYourKeysMessage2') }
|
||
6 years ago
|
</div>
|
||
|
<Button
|
||
6 years ago
|
type="confirm"
|
||
6 years ago
|
className="first-time-flow__button"
|
||
6 years ago
|
onClick={() => {
|
||
6 years ago
|
this.context.metricsEvent({
|
||
|
eventOpts: {
|
||
|
category: 'Onboarding',
|
||
|
action: 'Agree to Phishing Warning',
|
||
|
name: 'Agree to Phishing Warning',
|
||
|
},
|
||
|
})
|
||
|
history.push(INITIALIZE_END_OF_FLOW_ROUTE)
|
||
6 years ago
|
}}
|
||
6 years ago
|
>
|
||
|
{ t('next') }
|
||
|
</Button>
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
|
}
|