![mgabdev](/assets/img/avatar_default.png)
Removed imports of React, connect, PropTypes throughout Removed the "React" in React.Component/PureComponent
19 lines
437 B
JavaScript
19 lines
437 B
JavaScript
|
|
import Bundle from '../components/bundle';
|
|
|
|
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from '../../../actions/bundles';
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
onFetch () {
|
|
dispatch(fetchBundleRequest());
|
|
},
|
|
onFetchSuccess () {
|
|
dispatch(fetchBundleSuccess());
|
|
},
|
|
onFetchFail (error) {
|
|
dispatch(fetchBundleFail(error));
|
|
},
|
|
});
|
|
|
|
export default connect(null, mapDispatchToProps)(Bundle);
|