2018-02-01 23:29:33 +01:00
|
|
|
import { updateChannelRequest, updateClaimRequest } from 'actions/show';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import View from './view';
|
|
|
|
|
|
|
|
const mapStateToProps = ({ show }) => {
|
|
|
|
return {
|
2018-02-02 03:42:03 +01:00
|
|
|
request: show.request,
|
2018-02-01 23:29:33 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
|
|
return {
|
|
|
|
onChannelRequest: (channel) => {
|
|
|
|
dispatch(updateChannelRequest(channel));
|
|
|
|
},
|
|
|
|
onClaimRequest: (claim) => {
|
|
|
|
dispatch(updateClaimRequest(claim));
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(View);
|