8c32b36aa0
* 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
19 lines
754 B
JavaScript
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);
|