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.
27 lines
735 B
27 lines
735 B
4 years ago
|
import { connect } from 'react-redux';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import { getPreferences } from '../../../selectors';
|
||
|
import UserPreferencedTokenInput from './user-preferenced-token-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
|
const UserPreferencedTokenInputContainer = connect(mapStateToProps)(
|
||
|
UserPreferencedTokenInput,
|
||
4 years ago
|
);
|
||
5 years ago
|
|
||
|
UserPreferencedTokenInputContainer.propTypes = {
|
||
|
token: PropTypes.shape({
|
||
|
address: PropTypes.string.isRequired,
|
||
|
decimals: PropTypes.number,
|
||
|
symbol: PropTypes.string,
|
||
|
}).isRequired,
|
||
4 years ago
|
};
|
||
5 years ago
|
|
||
4 years ago
|
export default UserPreferencedTokenInputContainer;
|