aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/user-preferenced-currency-input/user-preferenced-currency-input.container.js
blob: 397cdc7cc3498cb065b710fab30466c49039521c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { connect } from 'react-redux'
import UserPreferencedCurrencyInput from './user-preferenced-currency-input.component'
import { preferencesSelector } from '../../selectors'

const mapStateToProps = state => {
  const { useETHAsPrimaryCurrency } = preferencesSelector(state)

  return {
    useETHAsPrimaryCurrency,
  }
}

export default connect(mapStateToProps)(UserPreferencedCurrencyInput)