aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/app/first-time/unique-image-screen.js
diff options
context:
space:
mode:
authorJacky Chan <jchan@uber.com>2017-08-21 19:56:09 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-21 12:51:37 +0800
commite1497fafa64b5f8e25407611709920dc5e0eaf77 (patch)
tree11f1b6eaddf131e4c733ec990ef67b476d6a86db /mascara/src/app/first-time/unique-image-screen.js
parent4e446410eb76c1bd5d27b6dd4f413bfbf3df0e2d (diff)
downloadtangerine-wallet-browser-e1497fafa64b5f8e25407611709920dc5e0eaf77.tar.gz
tangerine-wallet-browser-e1497fafa64b5f8e25407611709920dc5e0eaf77.tar.zst
tangerine-wallet-browser-e1497fafa64b5f8e25407611709920dc5e0eaf77.zip
Add UniqueImageScreen
Diffstat (limited to 'mascara/src/app/first-time/unique-image-screen.js')
-rw-r--r--mascara/src/app/first-time/unique-image-screen.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/mascara/src/app/first-time/unique-image-screen.js b/mascara/src/app/first-time/unique-image-screen.js
new file mode 100644
index 000000000..ae1512d47
--- /dev/null
+++ b/mascara/src/app/first-time/unique-image-screen.js
@@ -0,0 +1,40 @@
+import React, {Component, PropTypes} from 'react'
+import {connect} from 'react-redux';
+import Identicon from '../../../../ui/app/components/identicon'
+import Breadcrumbs from './breadcrumbs'
+
+class UniqueImageScreen extends Component {
+ static propTypes = {
+ address: PropTypes.string.isRequired,
+ next: PropTypes.func.isRequired
+ }
+
+ render() {
+ return (
+ <div className="unique-image">
+ <Identicon address={this.props.address} diameter={70} />
+ <div className="unique-image__title">You unique account image</div>
+ <div className="unique-image__body-text">
+ This image was programmatically generated for you by your new account number.
+ </div>
+ <div className="unique-image__body-text">
+ You’ll see this image everytime you need to confirm a transaction.
+ </div>
+ <button
+ className="first-time-flow__button"
+ onClick={this.props.next}
+ >
+ Next
+ </button>
+ <Breadcrumbs total={3} currentIndex={1} />
+ </div>
+ )
+ }
+}
+
+export default connect(
+ ({ metamask: { identities } }) => ({
+ address: Object.entries(identities)
+ .map(([key]) => key)[0]
+ })
+)(UniqueImageScreen)