chuckya/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 12:11:18 +09: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);