You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
455 B
23 lines
455 B
7 years ago
|
import { connect } from 'react-redux'
|
||
|
import ConfirmTransactionSwitch from './confirm-transaction-switch.component'
|
||
|
|
||
|
const mapStateToProps = state => {
|
||
6 years ago
|
const {
|
||
|
confirmTransaction: {
|
||
|
txData,
|
||
|
methodData,
|
||
6 years ago
|
fetchingData,
|
||
|
toSmartContract,
|
||
6 years ago
|
},
|
||
|
} = state
|
||
7 years ago
|
|
||
7 years ago
|
return {
|
||
6 years ago
|
txData,
|
||
|
methodData,
|
||
6 years ago
|
fetchingData,
|
||
|
isEtherTransaction: !toSmartContract,
|
||
7 years ago
|
}
|
||
|
}
|
||
|
|
||
|
export default connect(mapStateToProps)(ConfirmTransactionSwitch)
|