diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2019-02-27 02:30:41 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-02-27 02:30:41 +0800 |
commit | a2320c76fef084b7ec01839ab9c17b474839b3c0 (patch) | |
tree | 7620668c68c0de4e0de6ef745beb2cdc508ff50b /ui/app/components/transaction-breakdown/transaction-breakdown.container.js | |
parent | fc1655eecbf3da969dc9c9a8fc3ae95221ffa30b (diff) | |
download | tangerine-wallet-browser-a2320c76fef084b7ec01839ab9c17b474839b3c0.tar.gz tangerine-wallet-browser-a2320c76fef084b7ec01839ab9c17b474839b3c0.tar.zst tangerine-wallet-browser-a2320c76fef084b7ec01839ab9c17b474839b3c0.zip |
Show/Hide Fiat on Testnets based on User Preference (#6153)
Diffstat (limited to 'ui/app/components/transaction-breakdown/transaction-breakdown.container.js')
-rw-r--r-- | ui/app/components/transaction-breakdown/transaction-breakdown.container.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/components/transaction-breakdown/transaction-breakdown.container.js b/ui/app/components/transaction-breakdown/transaction-breakdown.container.js index ed2708e03..919187b6f 100644 --- a/ui/app/components/transaction-breakdown/transaction-breakdown.container.js +++ b/ui/app/components/transaction-breakdown/transaction-breakdown.container.js @@ -1,10 +1,14 @@ import { connect } from 'react-redux' import TransactionBreakdown from './transaction-breakdown.component' -import { getNativeCurrency } from '../../selectors' +import {getIsMainnet, getNativeCurrency, preferencesSelector} from '../../selectors' const mapStateToProps = (state) => { + const { showFiatInTestnets } = preferencesSelector(state) + const isMainnet = getIsMainnet(state) + return { nativeCurrency: getNativeCurrency(state), + showFiat: (isMainnet || !!showFiatInTestnets), } } |