2018-04-07 00:29:51 +02:00
|
|
|
import React, { Component } from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
2019-03-22 00:03:30 +01:00
|
|
|
import SendRowWrapper from '../send-row-wrapper'
|
2018-12-14 03:19:36 +01:00
|
|
|
import AccountListItem from '../../account-list-item'
|
2018-04-07 00:29:51 +02:00
|
|
|
|
|
|
|
export default class SendFromRow extends Component {
|
|
|
|
static propTypes = {
|
2018-04-26 18:38:38 +02:00
|
|
|
from: PropTypes.object,
|
2018-11-20 01:06:34 +01:00
|
|
|
}
|
2018-04-07 00:29:51 +02:00
|
|
|
|
2018-07-02 04:09:28 +02:00
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
2018-11-20 01:06:34 +01:00
|
|
|
}
|
2018-07-02 04:09:28 +02:00
|
|
|
|
2018-04-07 00:29:51 +02:00
|
|
|
render () {
|
2018-12-14 03:19:36 +01:00
|
|
|
const { t } = this.context
|
|
|
|
const { from } = this.props
|
2018-04-27 02:38:14 +02:00
|
|
|
|
2018-04-07 00:29:51 +02:00
|
|
|
return (
|
2018-12-14 03:19:36 +01:00
|
|
|
<SendRowWrapper label={`${t('from')}:`}>
|
|
|
|
<div className="send-v2__from-dropdown">
|
|
|
|
<AccountListItem account={from} />
|
|
|
|
</div>
|
2018-04-07 00:29:51 +02:00
|
|
|
</SendRowWrapper>
|
2018-04-27 02:38:14 +02:00
|
|
|
)
|
2018-04-07 00:29:51 +02:00
|
|
|
}
|
|
|
|
}
|