2018-09-17 19:34:29 +02:00
|
|
|
import React, { PureComponent } from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
2018-10-17 01:03:29 +02:00
|
|
|
import UserPreferencedCurrencyDisplay from '../../../user-preferenced-currency-display'
|
|
|
|
import { PRIMARY, SECONDARY } from '../../../../constants/common'
|
2018-09-17 19:34:29 +02:00
|
|
|
|
|
|
|
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-10-17 01:03:29 +02:00
|
|
|
<UserPreferencedCurrencyDisplay
|
2018-09-17 19:34:29 +02:00
|
|
|
className="cancel-transaction-gas-fee__eth"
|
|
|
|
value={value}
|
2018-10-17 01:03:29 +02:00
|
|
|
type={PRIMARY}
|
2018-09-17 19:34:29 +02:00
|
|
|
/>
|
2018-10-17 01:03:29 +02:00
|
|
|
<UserPreferencedCurrencyDisplay
|
2018-09-17 19:34:29 +02:00
|
|
|
className="cancel-transaction-gas-fee__fiat"
|
|
|
|
value={value}
|
2018-10-17 01:03:29 +02:00
|
|
|
type={SECONDARY}
|
2018-09-17 19:34:29 +02:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|