1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-18 15:48:22 +00:00
mastodon/app/javascript/flavours/glitch/features/ui/containers/bundle_container.js

20 lines
483 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import Bundle from '../components/bundle';
2017-12-04 07:26:40 +00:00
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);