2018-09-17 19:34:29 +02:00
|
|
|
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 () {
|
2018-09-19 23:30:52 +02:00
|
|
|
const { value } = this.props
|
2018-09-17 19:34:29 +02:00
|
|
|
|
|
|
|
return (
|
2018-09-19 23:30:52 +02:00
|
|
|
<div className="cancel-transaction-gas-fee">
|
2018-09-17 19:34:29 +02:00
|
|
|
<CurrencyDisplay
|
|
|
|
className="cancel-transaction-gas-fee__eth"
|
|
|
|
currency={ETH}
|
|
|
|
value={value}
|
|
|
|
numberOfDecimals={6}
|
|
|
|
/>
|
|
|
|
<CurrencyDisplay
|
|
|
|
className="cancel-transaction-gas-fee__fiat"
|
|
|
|
value={value}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|