spee.ch/react/containers/ShowAsset/index.js
2018-02-01 19:36:08 -08:00

24 lines
564 B
JavaScript

import { updateClaimData } from 'actions/show';
import { connect } from 'react-redux';
import View from './view';
const mapStateToProps = ({ show }) => {
return {
request: {
modifier : show.request.claim.modifier,
claim : show.request.claim.name,
extension: show.request.claim.extension,
},
claim: show.claim,
};
};
const mapDispatchToProps = dispatch => {
return {
onClaimDataChange: (data) => {
dispatch(updateClaimData(data));
},
};
};
export default connect(mapStateToProps, mapDispatchToProps)(View);