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.
28 lines
760 B
28 lines
760 B
7 years ago
|
import { connect } from 'react-redux'
|
||
|
import {
|
||
|
getConversionRate,
|
||
7 years ago
|
getCurrentCurrency,
|
||
6 years ago
|
getNativeCurrency,
|
||
7 years ago
|
} from '../send.selectors.js'
|
||
6 years ago
|
import {
|
||
6 years ago
|
getIsMainnet,
|
||
6 years ago
|
isBalanceCached,
|
||
6 years ago
|
preferencesSelector,
|
||
6 years ago
|
} from '../../../selectors/selectors'
|
||
7 years ago
|
import AccountListItem from './account-list-item.component'
|
||
|
|
||
|
export default connect(mapStateToProps)(AccountListItem)
|
||
|
|
||
|
function mapStateToProps (state) {
|
||
6 years ago
|
const { showFiatInTestnets } = preferencesSelector(state)
|
||
|
const isMainnet = getIsMainnet(state)
|
||
|
|
||
7 years ago
|
return {
|
||
|
conversionRate: getConversionRate(state),
|
||
7 years ago
|
currentCurrency: getCurrentCurrency(state),
|
||
6 years ago
|
nativeCurrency: getNativeCurrency(state),
|
||
6 years ago
|
balanceIsCached: isBalanceCached(state),
|
||
6 years ago
|
showFiat: (isMainnet || !!showFiatInTestnets),
|
||
7 years ago
|
}
|
||
7 years ago
|
}
|