spee.ch/react/components/AssetDisplay/index.js

22 lines
516 B
JavaScript
Raw Normal View History

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 {
error : show.displayAsset.error,
status : show.displayAsset.status,
2018-02-07 04:00:52 +01:00
claimData: show.showAsset.claimData,
};
};
const mapDispatchToProps = dispatch => {
return {
onFileRequest: (name, claimId) => {
dispatch(fileRequested(name, claimId));
},
};
};
export default connect(mapStateToProps, mapDispatchToProps)(View);