spee.ch/react/containers/ChannelClaimsDisplay/index.js
2018-02-09 10:02:13 -08:00

20 lines
560 B
JavaScript

import { connect } from 'react-redux';
import { updateChannelClaimsAsync } from 'actions/show';
import View from './view';
const mapStateToProps = ({ show }) => {
return {
showChannelId: show.showChannel.id,
channel : show.channelList[show.showChannel.id],
};
};
const mapDispatchToProps = dispatch => {
return {
onChannelPageUpdate: (showChannelId, name, longId, page) => {
dispatch(updateChannelClaimsAsync(showChannelId, name, longId, page));
},
};
};
export default connect(mapStateToProps, mapDispatchToProps)(View);