2018-04-11 16:21:54 +02:00
|
|
|
import React, { Component } from 'react'
|
2018-05-23 18:43:25 +02:00
|
|
|
import PropTypes from 'prop-types'
|
2019-04-17 21:15:13 +02:00
|
|
|
import PageContainerContent from '../../../components/ui/page-container/page-container-content.component'
|
2019-03-22 00:03:30 +01:00
|
|
|
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'
|
2019-03-22 00:03:30 +01:00
|
|
|
import SendToRow from './send-to-row'
|
2019-04-17 21:15:13 +02:00
|
|
|
import SendAssetRow from './send-asset-row'
|
2018-04-11 16:21:54 +02:00
|
|
|
|
|
|
|
export default class SendContent extends Component {
|
|
|
|
|
2018-05-23 18:43:25 +02:00
|
|
|
static propTypes = {
|
|
|
|
updateGas: PropTypes.func,
|
2018-07-24 03:27:51 +02:00
|
|
|
scanQrCode: PropTypes.func,
|
2018-08-16 09:43:13 +02:00
|
|
|
showHexData: PropTypes.bool,
|
2018-12-14 03:19:36 +01:00
|
|
|
}
|
2018-05-23 18:43:25 +02:00
|
|
|
|
2018-09-27 15:46:24 +02:00
|
|
|
updateGas = (updateData) => this.props.updateGas(updateData)
|
|
|
|
|
2018-04-11 16:21:54 +02:00
|
|
|
render () {
|
|
|
|
return (
|
|
|
|
<PageContainerContent>
|
2018-04-30 18:09:05 +02:00
|
|
|
<div className="send-v2__form">
|
2018-04-11 16:21:54 +02:00
|
|
|
<SendFromRow />
|
2018-07-24 04:10:57 +02:00
|
|
|
<SendToRow
|
2018-09-27 15:46:24 +02:00
|
|
|
updateGas={this.updateGas}
|
2018-07-24 04:10:57 +02:00
|
|
|
scanQrCode={ _ => this.props.scanQrCode()}
|
|
|
|
/>
|
2019-04-17 21:15:13 +02:00
|
|
|
<SendAssetRow />
|
2018-09-27 15:46:24 +02:00
|
|
|
<SendAmountRow updateGas={this.updateGas} />
|
2018-04-11 16:21:54 +02:00
|
|
|
<SendGasRow />
|
2018-09-27 15:46:24 +02:00
|
|
|
{(this.props.showHexData && (
|
|
|
|
<SendHexDataRow
|
|
|
|
updateGas={this.updateGas}
|
|
|
|
/>
|
|
|
|
))}
|
2018-04-11 16:21:54 +02:00
|
|
|
</div>
|
|
|
|
</PageContainerContent>
|
2018-04-27 02:38:14 +02:00
|
|
|
)
|
2018-04-11 16:21:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|