2021-02-04 19:15:23 +01:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import Loading from '../../../../ui/loading-screen';
|
|
|
|
import GasPriceButtonGroup from '../../gas-price-button-group';
|
2018-08-09 18:14:03 +02:00
|
|
|
|
|
|
|
export default class BasicTabContent extends Component {
|
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-08-09 18:14:03 +02:00
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
gasPriceButtonGroupProps: PropTypes.object,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-08-09 18:14:03 +02:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
render() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { t } = this.context;
|
|
|
|
const { gasPriceButtonGroupProps } = this.props;
|
2018-11-13 18:02:04 +01:00
|
|
|
|
2018-08-09 18:14:03 +02:00
|
|
|
return (
|
|
|
|
<div className="basic-tab-content">
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="basic-tab-content__title">
|
|
|
|
{t('estimatedProcessingTimes')}
|
|
|
|
</div>
|
|
|
|
<div className="basic-tab-content__blurb">
|
|
|
|
{t('selectAHigherGasFee')}
|
|
|
|
</div>
|
|
|
|
{gasPriceButtonGroupProps.loading ? (
|
|
|
|
<Loading />
|
|
|
|
) : (
|
|
|
|
<GasPriceButtonGroup
|
|
|
|
className="gas-price-button-group--alt"
|
|
|
|
showCheck
|
|
|
|
{...gasPriceButtonGroupProps}
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
<div className="basic-tab-content__footer-blurb">
|
|
|
|
{t('acceleratingATransaction')}
|
|
|
|
</div>
|
2018-08-09 18:14:03 +02:00
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-08-09 18:14:03 +02:00
|
|
|
}
|
|
|
|
}
|