about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/getting_started/containers/trends_container.js
blob: 68568d169ee94690333414d3a67e4c4178aedd6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { connect } from 'react-redux';
import { fetchTrends } from 'flavours/glitch/actions/trends';
import Trends from '../components/trends';

const mapStateToProps = state => ({
  trends: state.getIn(['trends', 'items']),
});

const mapDispatchToProps = dispatch => ({
  fetchTrends: () => dispatch(fetchTrends()),
});

export default connect(mapStateToProps, mapDispatchToProps)(Trends);