2021-02-04 19:15:23 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-06-23 23:35:25 +02:00
|
|
|
import { getSendHexData, updateSendHexData } from '../../../../ducks/send';
|
2021-02-04 19:15:23 +01:00
|
|
|
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 {
|
2021-06-23 23:35:25 +02:00
|
|
|
data: getSendHexData(state),
|
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
|
|
|
}
|