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.

19 lines
483 B

  1. import { connect } from 'react-redux';
  2. import Bundle from '../components/bundle';
  3. import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from 'flavours/glitch/actions/bundles';
  4. const mapDispatchToProps = dispatch => ({
  5. onFetch () {
  6. dispatch(fetchBundleRequest());
  7. },
  8. onFetchSuccess () {
  9. dispatch(fetchBundleSuccess());
  10. },
  11. onFetchFail (error) {
  12. dispatch(fetchBundleFail(error));
  13. },
  14. });
  15. export default connect(null, mapDispatchToProps)(Bundle);