* origin/develop: Updating references to MetaMask support (#10563) Remove dead code related to the selectedFromToken variable in swaps/index.js (#10570) make lavamoat optional for dev mode (#10538) Adding a warning when sending a token to its own contract address (#10546) handle undefined network (#10560) cache balances by chain id (#10545) Fix/handle safe low undefined (#10561) Remove unused `hasHexData` prop (#10529) Resolving pull-ws to v3.3.2 (#10543) Sync `master` with `develop` (#10540)feature/default_network_editable
commit
6c72b55b11
@ -1 +0,0 @@ |
||||
export { default } from './unique-image.container'; |
@ -1,49 +0,0 @@ |
||||
import React, { PureComponent } from 'react'; |
||||
import PropTypes from 'prop-types'; |
||||
import Button from '../../../../components/ui/button'; |
||||
import { INITIALIZE_END_OF_FLOW_ROUTE } from '../../../../helpers/constants/routes'; |
||||
|
||||
export default class UniqueImageScreen extends PureComponent { |
||||
static contextTypes = { |
||||
t: PropTypes.func, |
||||
metricsEvent: PropTypes.func, |
||||
}; |
||||
|
||||
static propTypes = { |
||||
history: PropTypes.object, |
||||
}; |
||||
|
||||
render() { |
||||
const { t } = this.context; |
||||
const { history } = this.props; |
||||
|
||||
return ( |
||||
<div> |
||||
<img src="/images/sleuth.svg" height="42" width="42" alt="" /> |
||||
<div className="first-time-flow__header">{t('protectYourKeys')}</div> |
||||
<div className="first-time-flow__text-block"> |
||||
{t('protectYourKeysMessage1')} |
||||
</div> |
||||
<div className="first-time-flow__text-block"> |
||||
{t('protectYourKeysMessage2')} |
||||
</div> |
||||
<Button |
||||
type="primary" |
||||
className="first-time-flow__button" |
||||
onClick={() => { |
||||
this.context.metricsEvent({ |
||||
eventOpts: { |
||||
category: 'Onboarding', |
||||
action: 'Agree to Phishing Warning', |
||||
name: 'Agree to Phishing Warning', |
||||
}, |
||||
}); |
||||
history.push(INITIALIZE_END_OF_FLOW_ROUTE); |
||||
}} |
||||
> |
||||
{t('next')} |
||||
</Button> |
||||
</div> |
||||
); |
||||
} |
||||
} |
@ -1,12 +0,0 @@ |
||||
import { connect } from 'react-redux'; |
||||
import UniqueImage from './unique-image.component'; |
||||
|
||||
const mapStateToProps = ({ metamask }) => { |
||||
const { selectedAddress } = metamask; |
||||
|
||||
return { |
||||
address: selectedAddress, |
||||
}; |
||||
}; |
||||
|
||||
export default connect(mapStateToProps)(UniqueImage); |
Loading…
Reference in new issue