blob: 8f14231ac8ccf4d4f50a66dc7bd8f832d26320cf (
plain) (
tree)
|
|
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import TokenInput from '../token-input'
export default class UserPreferencedTokenInput extends PureComponent {
static propTypes = {
useNativeCurrencyAsPrimaryCurrency: PropTypes.bool,
}
render () {
const { useNativeCurrencyAsPrimaryCurrency, ...restProps } = this.props
return (
<TokenInput
{...restProps}
showFiat={!useNativeCurrencyAsPrimaryCurrency}
/>
)
}
}
|