mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
058b74dc0a
Port d4592bbfcd
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
14 lines
420 B
JavaScript
14 lines
420 B
JavaScript
import { connect } from 'react-redux';
|
|
import { fetchTrendingHashtags } from 'flavours/glitch/actions/trends';
|
|
import Trends from '../components/trends';
|
|
|
|
const mapStateToProps = state => ({
|
|
trends: state.getIn(['trends', 'tags', 'items']),
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
fetchTrends: () => dispatch(fetchTrendingHashtags()),
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Trends);
|