7d7db8977b
Port d27216dc46
to glitch-soc
20 lines
484 B
JavaScript
20 lines
484 B
JavaScript
import { connect } from 'react-redux';
|
|
|
|
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from 'flavours/glitch/actions/bundles';
|
|
|
|
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);
|