1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 11:46:13 +02:00
metamask-extension/ui/app/components/send/send-content/send-content.component.js

35 lines
1016 B
JavaScript
Raw Normal View History

2018-04-11 16:21:54 +02:00
import React, { Component } from 'react'
import PropTypes from 'prop-types'
2018-04-26 18:38:38 +02:00
import PageContainerContent from '../../page-container/page-container-content.component'
2018-05-15 14:29:23 +02: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'
2018-05-15 14:29:23 +02:00
import SendToRow from './send-to-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,
};
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={(updateData) => this.props.updateGas(updateData)}
scanQrCode={ _ => this.props.scanQrCode()}
/>
<SendAmountRow updateGas={(updateData) => this.props.updateGas(updateData)} />
2018-04-11 16:21:54 +02:00
<SendGasRow />
2018-07-16 22:51:02 +02:00
<SendHexDataRow />
2018-04-11 16:21:54 +02:00
</div>
</PageContainerContent>
)
2018-04-11 16:21:54 +02:00
}
}