logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

bundle_container.js (476B)


  1. import { connect } from 'react-redux';
  2. import Bundle from '../components/bundle';
  3. import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from '../../../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);