2021-02-04 19:15:23 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { updateSendHexData } from '../../../../store/actions';
|
|
|
|
import SendHexDataRow from './send-hex-data-row.component';
|
2018-07-17 00:43:32 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendHexDataRow);
|
2018-07-17 00:43:32 +02:00
|
|
|
|
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,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-07-17 00:43:32 +02:00
|
|
|
}
|
|
|
|
|
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) {
|
2021-02-04 19:15:23 +01:00
|
|
|
return dispatch(updateSendHexData(data));
|
2018-07-17 00:43:32 +02:00
|
|
|
},
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-07-17 00:43:32 +02:00
|
|
|
}
|