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';
|
|
|
|
|
|
|
|
import Bundle from '../components/bundle';
|
|
|
|
|
2017-11-17 19:11:18 -08:00
|
|
|
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from 'themes/glitch/actions/bundles';
|
2017-07-07 15:06:02 -07:00
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onFetch () {
|
|
|
|
dispatch(fetchBundleRequest());
|
|
|
|
},
|
|
|
|
onFetchSuccess () {
|
|
|
|
dispatch(fetchBundleSuccess());
|
|
|
|
},
|
|
|
|
onFetchFail (error) {
|
|
|
|
dispatch(fetchBundleFail(error));
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(null, mapDispatchToProps)(Bundle);
|