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.
14 lines
422 B
14 lines
422 B
4 years ago
|
import { connect } from 'react-redux';
|
||
|
import { getPreferences } from '../../../selectors';
|
||
|
import UserPreferencedCurrencyInput from './user-preferenced-currency-input.component';
|
||
6 years ago
|
|
||
5 years ago
|
const mapStateToProps = (state) => {
|
||
4 years ago
|
const { useNativeCurrencyAsPrimaryCurrency } = getPreferences(state);
|
||
6 years ago
|
|
||
|
return {
|
||
6 years ago
|
useNativeCurrencyAsPrimaryCurrency,
|
||
4 years ago
|
};
|
||
|
};
|
||
6 years ago
|
|
||
4 years ago
|
export default connect(mapStateToProps)(UserPreferencedCurrencyInput);
|