mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-08 07:55:14 +00:00
20 lines
483 B
JavaScript
20 lines
483 B
JavaScript
import { connect } from 'react-redux';
|
|
|
|
import Bundle from '../components/bundle';
|
|
|
|
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from 'flavours/glitch/actions/bundles';
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
onFetch () {
|
|
dispatch(fetchBundleRequest());
|
|
},
|
|
onFetchSuccess () {
|
|
dispatch(fetchBundleSuccess());
|
|
},
|
|
onFetchFail (error) {
|
|
dispatch(fetchBundleFail(error));
|
|
},
|
|
});
|
|
|
|
export default connect(null, mapDispatchToProps)(Bundle);
|