You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
483 B
20 lines
483 B
![]()
7 years ago
|
import { connect } from 'react-redux';
|
||
|
|
||
|
import Bundle from '../components/bundle';
|
||
|
|
||
![]()
7 years ago
|
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from 'flavours/glitch/actions/bundles';
|
||
![]()
7 years ago
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
|
onFetch () {
|
||
|
dispatch(fetchBundleRequest());
|
||
|
},
|
||
|
onFetchSuccess () {
|
||
|
dispatch(fetchBundleSuccess());
|
||
|
},
|
||
|
onFetchFail (error) {
|
||
|
dispatch(fetchBundleFail(error));
|
||
|
},
|
||
|
});
|
||
|
|
||
|
export default connect(null, mapDispatchToProps)(Bundle);
|