2018-02-02 18:16:18 -08:00
|
|
|
import { connect } from 'react-redux';
|
2018-02-09 10:02:13 -08:00
|
|
|
import { updateChannelClaimsAsync } from 'actions/show';
|
2018-02-02 18:16:18 -08:00
|
|
|
import View from './view';
|
|
|
|
|
2018-02-08 16:42:13 -08:00
|
|
|
const mapStateToProps = ({ show }) => {
|
2018-02-02 18:16:18 -08:00
|
|
|
return {
|
2018-02-09 10:02:13 -08:00
|
|
|
showChannelId: show.showChannel.id,
|
|
|
|
channel : show.channelList[show.showChannel.id],
|
2018-02-02 18:16:18 -08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-09 10:02:13 -08:00
|
|
|
const mapDispatchToProps = dispatch => {
|
|
|
|
return {
|
|
|
|
onChannelPageUpdate: (showChannelId, name, longId, page) => {
|
|
|
|
dispatch(updateChannelClaimsAsync(showChannelId, name, longId, page));
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
2018-02-02 18:16:18 -08:00
|
|
|
|
2018-02-09 10:02:13 -08:00
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(View);
|