1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00
metamask-extension/ui/app/pages/send/send-content/send-from-row/send-from-row.component.js

28 lines
626 B
JavaScript
Raw Normal View History

2018-04-07 00:29:51 +02:00
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import SendRowWrapper from '../send-row-wrapper'
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-04-07 00:29:51 +02:00
static contextTypes = {
t: PropTypes.func,
}
2018-04-07 00:29:51 +02:00
render () {
const { t } = this.context
const { from } = this.props
2018-04-07 00:29:51 +02:00
return (
<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-07 00:29:51 +02:00
}
}