mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-05 07:24:56 +01:00
30 lines
820 B
JavaScript
30 lines
820 B
JavaScript
import React, { PureComponent } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import UserPreferencedCurrencyDisplay from '../../../user-preferenced-currency-display';
|
|
import { PRIMARY, SECONDARY } from '../../../../../helpers/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>
|
|
);
|
|
}
|
|
}
|