spee.ch/react/containers/ShowPage/index.js
2018-02-01 18:42:03 -08:00

22 lines
529 B
JavaScript

import { updateChannelRequest, updateClaimRequest } from 'actions/show';
import { connect } from 'react-redux';
import View from './view';
const mapStateToProps = ({ show }) => {
return {
request: show.request,
};
};
const mapDispatchToProps = dispatch => {
return {
onChannelRequest: (channel) => {
dispatch(updateChannelRequest(channel));
},
onClaimRequest: (claim) => {
dispatch(updateClaimRequest(claim));
},
};
};
export default connect(mapStateToProps, mapDispatchToProps)(View);