mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-04 23:14:56 +01:00
badebe017f
* Add UnitInput component * Add CurrencyInput component * Add UserPreferencedCurrencyInput component * Add UserPreferencedCurrencyDisplay component * Add updatePreferences action * Add styles for CurrencyInput, CurrencyDisplay, and UnitInput * Update SettingsTab page with Primary Currency toggle * Refactor currency displays and inputs to use UserPreferenced displays and inputs * Add TokenInput component * Add UserPreferencedTokenInput component * Use TokenInput in the send screen * Fix unit tests * Fix e2e and integration tests * Remove send/CurrencyDisplay component * Replace diamond unicode character with Eth logo. Fix typos
30 lines
803 B
JavaScript
30 lines
803 B
JavaScript
import React, { PureComponent } from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import UserPreferencedCurrencyDisplay from '../../../user-preferenced-currency-display'
|
|
import { PRIMARY, SECONDARY } from '../../../../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>
|
|
)
|
|
}
|
|
}
|