aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/transaction-breakdown/transaction-breakdown.container.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/transaction-breakdown/transaction-breakdown.container.js')
-rw-r--r--ui/app/components/transaction-breakdown/transaction-breakdown.container.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/ui/app/components/transaction-breakdown/transaction-breakdown.container.js b/ui/app/components/transaction-breakdown/transaction-breakdown.container.js
deleted file mode 100644
index 3e85b9e23..000000000
--- a/ui/app/components/transaction-breakdown/transaction-breakdown.container.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import { connect } from 'react-redux'
-import TransactionBreakdown from './transaction-breakdown.component'
-import {getIsMainnet, getNativeCurrency, preferencesSelector} from '../../selectors'
-import { getHexGasTotal } from '../../helpers/confirm-transaction/util'
-import { sumHexes } from '../../helpers/transactions.util'
-
-const mapStateToProps = (state, ownProps) => {
- const { transaction } = ownProps
- const { txParams: { gas, gasPrice, value } = {}, txReceipt: { gasUsed } = {} } = transaction
- const { showFiatInTestnets } = preferencesSelector(state)
- const isMainnet = getIsMainnet(state)
-
- const gasLimit = typeof gasUsed === 'string' ? gasUsed : gas
-
- const hexGasTotal = gasLimit && gasPrice && getHexGasTotal({ gasLimit, gasPrice }) || '0x0'
- const totalInHex = sumHexes(hexGasTotal, value)
-
- return {
- nativeCurrency: getNativeCurrency(state),
- showFiat: (isMainnet || !!showFiatInTestnets),
- totalInHex,
- gas,
- gasPrice,
- value,
- gasUsed,
- }
-}
-
-export default connect(mapStateToProps)(TransactionBreakdown)