The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
385 B

  1. import { connect } from 'react-redux';
  2. import { fetchTrends } from 'mastodon/actions/trends';
  3. import Trends from '../components/trends';
  4. const mapStateToProps = state => ({
  5. trends: state.getIn(['trends', 'items']),
  6. });
  7. const mapDispatchToProps = dispatch => ({
  8. fetchTrends: () => dispatch(fetchTrends()),
  9. });
  10. export default connect(mapStateToProps, mapDispatchToProps)(Trends);