This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-07-07 15:06:02 -07:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
2023-05-28 07:38:10 -07:00
|
|
|
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from 'flavours/glitch/actions/bundles';
|
|
|
|
|
2017-07-07 15:06:02 -07:00
|
|
|
import Bundle from '../components/bundle';
|
|
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onFetch () {
|
|
|
|
dispatch(fetchBundleRequest());
|
|
|
|
},
|
|
|
|
onFetchSuccess () {
|
|
|
|
dispatch(fetchBundleSuccess());
|
|
|
|
},
|
|
|
|
onFetchFail (error) {
|
|
|
|
dispatch(fetchBundleFail(error));
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(null, mapDispatchToProps)(Bundle);
|