mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-26 18:14:15 -05:00
19 lines
475 B
JavaScript
19 lines
475 B
JavaScript
import { connect } from 'react-redux';
|
|
|
|
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from '../../../actions/bundles';
|
|
import Bundle from '../components/bundle';
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
onFetch () {
|
|
dispatch(fetchBundleRequest());
|
|
},
|
|
onFetchSuccess () {
|
|
dispatch(fetchBundleSuccess());
|
|
},
|
|
onFetchFail (error) {
|
|
dispatch(fetchBundleFail(error));
|
|
},
|
|
});
|
|
|
|
export default connect(null, mapDispatchToProps)(Bundle);
|