aboutsummaryrefslogblamecommitdiffstats
path: root/mascara/src/app/first-time/unique-image-screen.js
blob: ede17ee3d37b82dfe5c6e60f7e92117146823fd9 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                        
                                   




                                                               
                              
                                    

   
             
            


















                                                                                           
              





                       
                                           
                             

                    
import React, { Component } from 'react'
import PropTypes from 'prop-types'
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,
    next: PropTypes.func.isRequired,
  }

  render () {
    return (
      <div className="first-view-main-wrapper">
        <div className="first-view-main">
          <div className="unique-image">
            <Identicon address={this.props.address} diameter={70} />
            <div className="unique-image__title">Your 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">
              Youll 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>
        </div>
      </div>
    )
  }
}

export default connect(
  ({ metamask: { selectedAddress } }) => ({
    address: selectedAddress,
  })
)(UniqueImageScreen)