2018-07-17 00:43:32 +02:00
|
|
|
import { connect } from 'react-redux'
|
2020-11-03 00:41:28 +01:00
|
|
|
import { updateSendHexData } from '../../../../store/actions'
|
2018-07-17 00:43:32 +02:00
|
|
|
import SendHexDataRow from './send-hex-data-row.component'
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendHexDataRow)
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
function mapStateToProps(state) {
|
2018-07-17 00:43:32 +02:00
|
|
|
return {
|
|
|
|
data: state.metamask.send.data,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
function mapDispatchToProps(dispatch) {
|
2018-07-17 00:43:32 +02:00
|
|
|
return {
|
2020-11-03 00:41:28 +01:00
|
|
|
updateSendHexData(data) {
|
2018-07-17 00:43:32 +02:00
|
|
|
return dispatch(updateSendHexData(data))
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|