1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 05:12:18 +01:00
metamask-extension/ui/app/pages/send/send-content/send-content.component.js

44 lines
1.2 KiB
JavaScript
Raw Normal View History

2018-04-11 16:21:54 +02:00
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import PageContainerContent from '../../../components/ui/page-container/page-container-content.component'
import SendAmountRow from './send-amount-row'
import SendFromRow from './send-from-row'
import SendGasRow from './send-gas-row'
2018-07-16 22:51:02 +02:00
import SendHexDataRow from './send-hex-data-row'
import SendToRow from './send-to-row'
import SendAssetRow from './send-asset-row'
2018-04-11 16:21:54 +02:00
export default class SendContent extends Component {
static propTypes = {
updateGas: PropTypes.func,
2018-07-24 03:27:51 +02:00
scanQrCode: PropTypes.func,
showHexData: PropTypes.bool,
}
updateGas = (updateData) => this.props.updateGas(updateData)
2018-04-11 16:21:54 +02:00
render () {
return (
<PageContainerContent>
<div className="send-v2__form">
2018-04-11 16:21:54 +02:00
<SendFromRow />
<SendToRow
updateGas={this.updateGas}
scanQrCode={ _ => this.props.scanQrCode()}
/>
<SendAssetRow />
<SendAmountRow updateGas={this.updateGas} />
2018-04-11 16:21:54 +02:00
<SendGasRow />
{(this.props.showHexData && (
<SendHexDataRow
updateGas={this.updateGas}
/>
))}
2018-04-11 16:21:54 +02:00
</div>
</PageContainerContent>
)
2018-04-11 16:21:54 +02:00
}
}