aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/pages/confirm-transaction-switch/confirm-transaction-switch.container.js
blob: 7f2c36af2af0961f7c44eee5de57805b34d271a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { connect } from 'react-redux'
import ConfirmTransactionSwitch from './confirm-transaction-switch.component'

const mapStateToProps = state => {
  const {
    confirmTransaction: {
      txData,
      methodData,
      fetchingData,
      toSmartContract,
    },
  } = state

  return {
    txData,
    methodData,
    fetchingData,
    isEtherTransaction: !toSmartContract,
  }
}

export default connect(mapStateToProps)(ConfirmTransactionSwitch)