mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 13:58:06 +01:00
20 lines
476 B
JavaScript
20 lines
476 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
|
||
|
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);
|