mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
30a2be85ee
* Prevent users from changing the From field in the send screen * Fix integration tests
28 lines
627 B
JavaScript
28 lines
627 B
JavaScript
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>
|
|
)
|
|
}
|
|
}
|