mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
23 lines
455 B
JavaScript
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)
|