1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 19:10:22 +01:00
metamask-extension/ui/app/components/pages/confirm-transaction-switch/confirm-transaction-switch.container.js
2018-08-22 14:19:07 -07:00

23 lines
455 B
JavaScript

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)