Change featured hashtags to be displayed in navigation panel (#19382)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2022-10-19 11:30:59 +02:00
1 parent 1b83040bd4
commit aefa9253d6
9 files changed
+161 -101

No files matched your search

@@ -0,0 +1,15 @@
import { connect } from 'react-redux';
import FeaturedTags from '../components/featured_tags';
import { makeGetAccount } from 'mastodon/selectors';
import { List as ImmutableList } from 'immutable';
const mapStateToProps = () => {
const getAccount = makeGetAccount();
return (state, { accountId }) => ({
account: getAccount(state, accountId),
featuredTags: state.getIn(['user_lists', 'featured_tags', accountId, 'items'], ImmutableList()),
});
};
export default connect(mapStateToProps)(FeaturedTags);