1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-24 04:13:27 +02:00
metamask-extension/ui/app/components/send/send-content/send-from-row/send-from-row.component.js
Alexander Tseung 30a2be85ee
Prevent users from changing the From field in the send screen (#5922)
* Prevent users from changing the From field in the send screen

* Fix integration tests
2018-12-13 18:19:36 -08:00

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>
)
}
}