You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
519 B
21 lines
519 B
4 years ago
|
import React, { PureComponent } from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import CurrencyInput from '../../ui/currency-input';
|
||
6 years ago
|
|
||
|
export default class UserPreferencedCurrencyInput extends PureComponent {
|
||
|
static propTypes = {
|
||
6 years ago
|
useNativeCurrencyAsPrimaryCurrency: PropTypes.bool,
|
||
4 years ago
|
};
|
||
6 years ago
|
|
||
4 years ago
|
render() {
|
||
4 years ago
|
const { useNativeCurrencyAsPrimaryCurrency, ...restProps } = this.props;
|
||
6 years ago
|
|
||
|
return (
|
||
|
<CurrencyInput
|
||
|
{...restProps}
|
||
6 years ago
|
useFiat={!useNativeCurrencyAsPrimaryCurrency}
|
||
6 years ago
|
/>
|
||
4 years ago
|
);
|
||
6 years ago
|
}
|
||
|
}
|