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

                                            

                                                                                       


                                                              



                            
                                

            
                                                  
                                       
                                                     
                       
                        
          
                                       

                                                      
                          




            
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import UserPreferencedCurrencyDisplay from '../../../user-preferenced-currency-display'
import { PRIMARY, SECONDARY } 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">
        <UserPreferencedCurrencyDisplay
          className="cancel-transaction-gas-fee__eth"
          value={value}
          type={PRIMARY}
        />
        <UserPreferencedCurrencyDisplay
          className="cancel-transaction-gas-fee__fiat"
          value={value}
          type={SECONDARY}
        />
      </div>
    )
  }
}