aboutsummaryrefslogblamecommitdiffstats
path: root/ui/app/components/modals/cancel-transaction/cancel-transaction-gas-fee/cancel-transaction-gas-fee.component.js
blob: b082db1d09ac48cfb57a17e855bde1315b5ed4f6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                            




                                                              



                            
                                

            
                                                  













                                                      
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import CurrencyDisplay from '../../../currency-display'
import { ETH } from '../../../../constants/common'

export default class CancelTransaction extends PureComponent {
  static propTypes = {
    value: PropTypes.string,
  }

  render () {
    const { value } = this.props

    return (
      <div className="cancel-transaction-gas-fee">
        <CurrencyDisplay
          className="cancel-transaction-gas-fee__eth"
          currency={ETH}
          value={value}
          numberOfDecimals={6}
        />
        <CurrencyDisplay
          className="cancel-transaction-gas-fee__fiat"
          value={value}
        />
      </div>
    )
  }
}