Add loading indicator for trending tags (#7693)

This commit is contained in:
Yamagishi Kazutoshi authored and Eugen Rochko committed 2018-06-01 14:22:42 +02:00
1 parent bfa12239e8
commit 69b45350fe
6 files changed
+104 -41

No files matched your search

@@ -0,0 +1,15 @@
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import { fetchTrends } from '../../../actions/trends';
import Trends from '../components/trends';
const mapStateToProps = state => ({
trends: state.getIn(['trends', 'items']),
loading: state.getIn(['trends', 'isLoading']),
});
const mapDispatchToProps = dispatch => ({
fetchTrends: () => dispatch(fetchTrends()),
});
export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(Trends));