2018-02-01 23:29:33 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-02-14 18:19:22 +01:00
|
|
|
import { onRequestError, onParsedChannelRequest, onParsedAssetRequest } from 'actions/show';
|
2018-02-01 23:29:33 +01:00
|
|
|
import View from './view';
|
|
|
|
|
|
|
|
const mapStateToProps = ({ show }) => {
|
|
|
|
return {
|
2018-02-07 20:30:39 +01:00
|
|
|
error : show.request.error,
|
2018-02-07 19:52:09 +01:00
|
|
|
requestType: show.request.type,
|
2018-02-01 23:29:33 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-14 18:19:22 +01:00
|
|
|
const mapDispatchToProps = () => {
|
2018-02-01 23:29:33 +01:00
|
|
|
return {
|
2018-02-14 18:19:22 +01:00
|
|
|
onRequestError,
|
|
|
|
onParsedChannelRequest,
|
|
|
|
onParsedAssetRequest,
|
2018-02-01 23:29:33 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(View);
|