bbe68a3319
* Add a setting to hide scheduled livestreams from home/following * Add a hide button in the scheduled stream header. * Fix typo + make sure pref is synced
20 lines
889 B
JavaScript
20 lines
889 B
JavaScript
import { connect } from 'react-redux';
|
|
import * as SETTINGS from 'constants/settings';
|
|
import { doFetchActiveLivestreams } from 'redux/actions/livestream';
|
|
import { selectActiveLivestreams, selectFetchingActiveLivestreams } from 'redux/selectors/livestream';
|
|
import { selectSubscriptions } from 'redux/selectors/subscriptions';
|
|
import { selectClientSetting } from 'redux/selectors/settings';
|
|
|
|
import ChannelsFollowingPage from './view';
|
|
|
|
const select = (state) => ({
|
|
subscribedChannels: selectSubscriptions(state),
|
|
tileLayout: selectClientSetting(state, SETTINGS.TILE_LAYOUT),
|
|
activeLivestreams: selectActiveLivestreams(state),
|
|
fetchingActiveLivestreams: selectFetchingActiveLivestreams(state),
|
|
hideScheduledLivestreams: selectClientSetting(state, SETTINGS.HIDE_SCHEDULED_LIVESTREAMS),
|
|
});
|
|
|
|
export default connect(select, {
|
|
doFetchActiveLivestreams,
|
|
})(ChannelsFollowingPage);
|