You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
626 B
28 lines
626 B
7 years ago
|
import React, { Component } from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
6 years ago
|
import SendRowWrapper from '../send-row-wrapper'
|
||
6 years ago
|
import AccountListItem from '../../account-list-item'
|
||
7 years ago
|
|
||
|
export default class SendFromRow extends Component {
|
||
|
static propTypes = {
|
||
7 years ago
|
from: PropTypes.object,
|
||
6 years ago
|
}
|
||
7 years ago
|
|
||
7 years ago
|
static contextTypes = {
|
||
|
t: PropTypes.func,
|
||
6 years ago
|
}
|
||
7 years ago
|
|
||
7 years ago
|
render () {
|
||
6 years ago
|
const { t } = this.context
|
||
|
const { from } = this.props
|
||
7 years ago
|
|
||
7 years ago
|
return (
|
||
6 years ago
|
<SendRowWrapper label={`${t('from')}:`}>
|
||
|
<div className="send-v2__from-dropdown">
|
||
|
<AccountListItem account={from} />
|
||
|
</div>
|
||
7 years ago
|
</SendRowWrapper>
|
||
7 years ago
|
)
|
||
7 years ago
|
}
|
||
|
}
|