2018-02-07 04:00:52 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import View from './view';
|
|
|
|
import { fileRequested } from 'actions/show';
|
|
|
|
|
|
|
|
const mapStateToProps = ({ show }) => {
|
|
|
|
return {
|
2018-02-07 19:52:09 +01:00
|
|
|
error : show.displayAsset.error,
|
|
|
|
status : show.displayAsset.status,
|
2018-02-09 01:23:09 +01:00
|
|
|
asset : show.assetList[show.showAsset.id],
|
2018-02-07 04:00:52 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
|
|
return {
|
|
|
|
onFileRequest: (name, claimId) => {
|
|
|
|
dispatch(fileRequested(name, claimId));
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(View);
|