mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
21 lines
475 B
JavaScript
21 lines
475 B
JavaScript
|
import React, { PureComponent } from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
|
import CurrencyInput from '../currency-input'
|
||
|
|
||
|
export default class UserPreferencedCurrencyInput extends PureComponent {
|
||
|
static propTypes = {
|
||
|
useETHAsPrimaryCurrency: PropTypes.bool,
|
||
|
}
|
||
|
|
||
|
render () {
|
||
|
const { useETHAsPrimaryCurrency, ...restProps } = this.props
|
||
|
|
||
|
return (
|
||
|
<CurrencyInput
|
||
|
{...restProps}
|
||
|
useFiat={!useETHAsPrimaryCurrency}
|
||
|
/>
|
||
|
)
|
||
|
}
|
||
|
}
|