1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-04 23:14:56 +01:00
metamask-extension/ui/components/app/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js

43 lines
1.1 KiB
JavaScript
Raw Normal View History

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Loading from '../../../../ui/loading-screen';
import GasPriceButtonGroup from '../../gas-price-button-group';
export default class BasicTabContent extends Component {
static contextTypes = {
t: PropTypes.func,
};
static propTypes = {
gasPriceButtonGroupProps: PropTypes.object,
};
2020-11-03 00:41:28 +01:00
render() {
const { t } = this.context;
const { gasPriceButtonGroupProps } = this.props;
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>
</div>
);
}
}