ffdb5abf63
* Save * Save * Add pulse * Adjust footer ad * Adjust tile ad * Adjust tile ad hover * Fix premium badge alignment in tile grid * Adjust livestream icon * Adjust livestream icon * Save scheduled livestreasm & tile ad * Fix scheduled callback * Fix playlist icon size on file page * Fix grid distortion in 3 & 4 column layout * - * Fix grid on category & channel page * Fix Premium Plus Grid * Add custom tile for adblockers * Reset env * Remove collapsed tiles * Remove setLoaded on scheduled livestreams page * - * Make isHidden optional * Remove px * Review adjustments * Inject Premium+ ads * Fix injection * Fix injection when using the last tile * Fix injection when using the last tile * Enable stripe dev * Create PremiumPlusTile component and add list view design * Create PremiumPlusTile component and add list view design * Adjust ads in list view * Remove setState from render loop * Clean code * Fix livestream margin in list view * Rewrite & tune some logic - Homepage & Channel page * Clean details... * Clean details... * Requested review changes Signed-off-by: Raphael Wickihalder <raphael.wickihalder@odysee.com> * Requested review changes Signed-off-by: Raphael Wickihalder <raphael.wickihalder@odysee.com>
46 lines
1.8 KiB
JavaScript
46 lines
1.8 KiB
JavaScript
import { connect } from 'react-redux';
|
|
import * as SETTINGS from 'constants/settings';
|
|
import { doOpenModal } from 'redux/actions/app';
|
|
import { doFetchActiveLivestreams } from 'redux/actions/livestream';
|
|
import { selectAdBlockerFound } from 'redux/selectors/app';
|
|
import { selectActiveLivestreams, selectFetchingActiveLivestreams } from 'redux/selectors/livestream';
|
|
import { selectFollowedTags } from 'redux/selectors/tags';
|
|
import {
|
|
selectOdyseeMembershipIsPremiumPlus,
|
|
selectHasOdyseeMembership,
|
|
selectHomepageFetched,
|
|
selectUserVerifiedEmail,
|
|
} from 'redux/selectors/user';
|
|
import { selectSubscriptions } from 'redux/selectors/subscriptions';
|
|
import {
|
|
selectShowMatureContent,
|
|
selectHomepageData,
|
|
selectClientSetting,
|
|
selectHomepageMeme,
|
|
} from 'redux/selectors/settings';
|
|
|
|
import HomePage from './view';
|
|
|
|
const select = (state) => ({
|
|
followedTags: selectFollowedTags(state),
|
|
subscribedChannels: selectSubscriptions(state),
|
|
authenticated: selectUserVerifiedEmail(state),
|
|
showNsfw: selectShowMatureContent(state),
|
|
homepageData: selectHomepageData(state),
|
|
homepageMeme: selectHomepageMeme(state),
|
|
homepageFetched: selectHomepageFetched(state),
|
|
activeLivestreams: selectActiveLivestreams(state),
|
|
fetchingActiveLivestreams: selectFetchingActiveLivestreams(state),
|
|
hideScheduledLivestreams: selectClientSetting(state, SETTINGS.HIDE_SCHEDULED_LIVESTREAMS),
|
|
adBlockerFound: selectAdBlockerFound(state),
|
|
homepageOrder: selectClientSetting(state, SETTINGS.HOMEPAGE_ORDER),
|
|
hasMembership: selectHasOdyseeMembership(state),
|
|
hasPremiumPlus: selectOdyseeMembershipIsPremiumPlus(state),
|
|
});
|
|
|
|
const perform = (dispatch) => ({
|
|
doFetchActiveLivestreams: () => dispatch(doFetchActiveLivestreams()),
|
|
doOpenModal: (modal, props) => dispatch(doOpenModal(modal, props)),
|
|
});
|
|
|
|
export default connect(select, perform)(HomePage);
|