mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 04:37:13 +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)
|