You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
7 years ago
|
import React, { Component } from 'react'
|
||
7 years ago
|
import PropTypes from 'prop-types'
|
||
6 years ago
|
import PageContainerContent from '../../../components/ui/page-container/page-container-content.component'
|
||
6 years ago
|
import SendAmountRow from './send-amount-row'
|
||
|
import SendFromRow from './send-from-row'
|
||
|
import SendGasRow from './send-gas-row'
|
||
6 years ago
|
import SendHexDataRow from './send-hex-data-row'
|
||
6 years ago
|
import SendToRow from './send-to-row'
|
||
6 years ago
|
import SendAssetRow from './send-asset-row'
|
||
7 years ago
|
|
||
|
export default class SendContent extends Component {
|
||
|
|
||
7 years ago
|
static propTypes = {
|
||
|
updateGas: PropTypes.func,
|
||
6 years ago
|
scanQrCode: PropTypes.func,
|
||
6 years ago
|
showHexData: PropTypes.bool,
|
||
6 years ago
|
}
|
||
7 years ago
|
|
||
6 years ago
|
updateGas = (updateData) => this.props.updateGas(updateData)
|
||
|
|
||
7 years ago
|
render () {
|
||
|
return (
|
||
|
<PageContainerContent>
|
||
7 years ago
|
<div className="send-v2__form">
|
||
7 years ago
|
<SendFromRow />
|
||
6 years ago
|
<SendToRow
|
||
6 years ago
|
updateGas={this.updateGas}
|
||
6 years ago
|
scanQrCode={ _ => this.props.scanQrCode()}
|
||
|
/>
|
||
6 years ago
|
<SendAssetRow />
|
||
6 years ago
|
<SendAmountRow updateGas={this.updateGas} />
|
||
7 years ago
|
<SendGasRow />
|
||
6 years ago
|
{(this.props.showHexData && (
|
||
|
<SendHexDataRow
|
||
|
updateGas={this.updateGas}
|
||
|
/>
|
||
|
))}
|
||
7 years ago
|
</div>
|
||
|
</PageContainerContent>
|
||
7 years ago
|
)
|
||
7 years ago
|
}
|
||
|
|
||
|
}
|