2018-08-09 18:14:03 +02:00
|
|
|
import React, { Component } from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
2018-11-13 18:02:04 +01:00
|
|
|
import Loading from '../../../loading-screen'
|
2018-08-09 18:14:03 +02:00
|
|
|
import GasPriceButtonGroup from '../../gas-price-button-group'
|
|
|
|
|
|
|
|
export default class BasicTabContent extends Component {
|
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
|
|
|
}
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
gasPriceButtonGroupProps: PropTypes.object,
|
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
2018-11-13 18:02:04 +01:00
|
|
|
const { gasPriceButtonGroupProps } = this.props
|
|
|
|
|
2018-08-09 18:14:03 +02:00
|
|
|
return (
|
|
|
|
<div className="basic-tab-content">
|
2018-10-25 05:55:39 +02:00
|
|
|
<div className="basic-tab-content__title">Estimated Processing Times</div>
|
|
|
|
<div className="basic-tab-content__blurb">Select a higher gas fee to accelerate the processing of your transaction.*</div>
|
2018-11-13 18:02:04 +01:00
|
|
|
{!gasPriceButtonGroupProps.loading
|
|
|
|
? <GasPriceButtonGroup
|
|
|
|
className="gas-price-button-group--alt"
|
|
|
|
showCheck={true}
|
|
|
|
{...gasPriceButtonGroupProps}
|
|
|
|
/>
|
|
|
|
: <Loading />
|
|
|
|
}
|
2018-10-25 05:55:39 +02:00
|
|
|
<div className="basic-tab-content__footer-blurb">* Accelerating a transaction by using a higher gas price increases its chances of getting processed by the network faster, but it is not always guaranteed.</div>
|
2018-08-09 18:14:03 +02:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|