2018-02-02 04:36:08 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import View from './view';
|
2018-02-03 03:16:18 +01:00
|
|
|
import { updateAssetClaimData } from 'actions/show';
|
2018-02-02 04:36:08 +01:00
|
|
|
|
|
|
|
const mapStateToProps = ({ show }) => {
|
|
|
|
return {
|
2018-02-02 20:10:58 +01:00
|
|
|
modifier : show.assetRequest.modifier,
|
|
|
|
claim : show.assetRequest.name,
|
|
|
|
extension: show.assetRequest.extension,
|
2018-02-03 03:16:18 +01:00
|
|
|
claimData: show.showAsset.claimData,
|
2018-02-02 04:36:08 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-03 03:16:18 +01:00
|
|
|
const mapDispatchToProps = dispatch => {
|
|
|
|
return {
|
|
|
|
onAssetClaimDataUpdate: (claimData) => {
|
|
|
|
dispatch(updateAssetClaimData(claimData));
|
|
|
|
},
|
|
|
|
onAssetClaimDataClear: () => {
|
|
|
|
dispatch(updateAssetClaimData(null));
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(View);
|