aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/send-content/send-from-row/send-from-row.component.js
blob: f8aa084d8198b8f9681d8481362651b96bd11752 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import SendRowWrapper from '../send-row-wrapper/'
import AccountListItem from '../../account-list-item'

export default class SendFromRow extends Component {
  static propTypes = {
    from: PropTypes.object,
  }

  static contextTypes = {
    t: PropTypes.func,
  }

  render () {
    const { t } = this.context
    const { from } = this.props

    return (
      <SendRowWrapper label={`${t('from')}:`}>
        <div className="send-v2__from-dropdown">
          <AccountListItem account={from} />
        </div>
      </SendRowWrapper>
    )
  }
}