aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js
blob: 05b8f700b09f9b29e9cbeeeb0af65d73f1b42d03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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>
    )
  }
}