mastodon/app/javascript/themes/glitch/features/ui/containers/bundle_container.js

20 lines
481 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import Bundle from '../components/bundle';
2017-11-18 04:11:18 +01:00
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from 'themes/glitch/actions/bundles';
const mapDispatchToProps = dispatch => ({
onFetch () {
dispatch(fetchBundleRequest());
},
onFetchSuccess () {
dispatch(fetchBundleSuccess());
},
onFetchFail (error) {
dispatch(fetchBundleFail(error));
},
});
export default connect(null, mapDispatchToProps)(Bundle);