1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-11 20:27:12 +01:00
metamask-extension/ui/components/app/modals/cancel-transaction/cancel-transaction-gas-fee/cancel-transaction-gas-fee.component.js

30 lines
820 B
JavaScript
Raw Normal View History

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,
};
2020-11-03 00:41:28 +01:00
render() {
const { value } = this.props;
return (
2018-09-19 23:30:52 +02:00
<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>
);
}
}