lbry-desktop/ui/component/userChannelFollowIntro/index.js
saltrafael 8c32b36aa0
Add language based channels to Auto follow (#523)
* Refactor userChannelFollowIntro

* Add community based channels to signup auto follow

* Add German channels

* Remove main english channels and leave only community ones for auto follow
2021-12-20 15:35:59 -05:00

19 lines
754 B
JavaScript

import { connect } from 'react-redux';
import { doChannelSubscribe } from 'redux/actions/subscriptions';
import { selectHomepageData, selectLanguage } from 'redux/selectors/settings';
import { selectPrefsReady } from 'redux/selectors/sync';
import { selectSubscriptions } from 'redux/selectors/subscriptions';
import UserChannelFollowIntro from './view';
const select = (state) => ({
homepageData: selectHomepageData(state),
language: selectLanguage(state),
prefsReady: selectPrefsReady(state),
subscribedChannels: selectSubscriptions(state),
});
const perform = (dispatch) => ({
channelSubscribe: (channelName, uri) => dispatch(doChannelSubscribe({ channelName, uri })),
});
export default connect(select, perform)(UserChannelFollowIntro);