spee.ch/client/build/containers/ChannelClaimsDisplay/index.js
2018-05-31 18:16:19 -07:00

38 lines
No EOL
997 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactRedux = require("react-redux");
var _show = require("../../actions/show");
var _view = _interopRequireDefault(require("./view"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var mapStateToProps = function mapStateToProps(_ref) {
var show = _ref.show,
defaultThumbnail = _ref.site.defaultThumbnail;
// select channel key
var request = show.requestList[show.request.id];
var channelKey = request.key; // select channel claims
var channel = show.channelList[channelKey] || null; // return props
return {
channelKey: channelKey,
channel: channel,
defaultThumbnail: defaultThumbnail
};
};
var mapDispatchToProps = {
onUpdateChannelClaims: _show.onUpdateChannelClaims
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_view.default);
exports.default = _default;