mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 14:15:06 +01:00
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
import React, { Component } from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import Loading from '../../../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,
|
|
}
|
|
|
|
render () {
|
|
const { t } = this.context
|
|
const { gasPriceButtonGroupProps } = this.props
|
|
|
|
return (
|
|
<div className="basic-tab-content">
|
|
<div className="basic-tab-content__title">{ t('estimatedProcessingTimes') }</div>
|
|
<div className="basic-tab-content__blurb">{ t('selectAHigherGasFee') }</div>
|
|
{!gasPriceButtonGroupProps.loading
|
|
? <GasPriceButtonGroup
|
|
className="gas-price-button-group--alt"
|
|
showCheck={true}
|
|
{...gasPriceButtonGroupProps}
|
|
/>
|
|
: <Loading />
|
|
}
|
|
<div className="basic-tab-content__footer-blurb">{ t('acceleratingATransaction') }</div>
|
|
</div>
|
|
)
|
|
}
|
|
}
|