bigbuffet-rw/app/soapbox/features/ui/containers/bundle_container.js

20 lines
473 B
JavaScript
Raw Normal View History

2020-03-27 13:59:38 -07:00
import { connect } from 'react-redux';
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from '../../../actions/bundles';
2020-03-27 13:59:38 -07:00
import Bundle from '../components/bundle';
const mapDispatchToProps = dispatch => ({
onFetch() {
2020-03-27 13:59:38 -07:00
dispatch(fetchBundleRequest());
},
onFetchSuccess() {
2020-03-27 13:59:38 -07:00
dispatch(fetchBundleSuccess());
},
onFetchFail(error) {
2020-03-27 13:59:38 -07:00
dispatch(fetchBundleFail(error));
},
});
export default connect(null, mapDispatchToProps)(Bundle);