2021-02-04 19:15:23 +01:00
|
|
|
import React, { PureComponent } from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import UserPreferencedCurrencyDisplay from '../../../user-preferenced-currency-display';
|
|
|
|
import { PRIMARY, SECONDARY } from '../../../../../helpers/constants/common';
|
2018-09-17 19:34:29 +02:00
|
|
|
|
|
|
|
export default class CancelTransaction extends PureComponent {
|
|
|
|
static propTypes = {
|
|
|
|
value: PropTypes.string,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-09-17 19:34:29 +02:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
render() {
|
2021-02-04 19:15:23 +01: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>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-09-17 19:34:29 +02:00
|
|
|
}
|
|
|
|
}
|