327a574982
## Behavior in homepage - Mobile: show after every other category - Desktop: show after first category, then every 2 categories. ## Known issue: - "FYP" is not part of the categories array at the moment, so it does mess up the behavior. ## Notes I think this is also called "in-content" by adnim (not 100% sure of the terminology).
18 lines
641 B
JavaScript
18 lines
641 B
JavaScript
import { connect } from 'react-redux';
|
|
import * as SETTINGS from 'constants/settings';
|
|
import { doSetAdBlockerFound } from 'redux/actions/app';
|
|
import { selectClientSetting } from 'redux/selectors/settings';
|
|
import { selectOdyseeMembershipIsPremiumPlus, selectUserCountry } from 'redux/selectors/user';
|
|
import AdsBanner from './view';
|
|
|
|
const select = (state, props) => ({
|
|
userHasPremiumPlus: selectOdyseeMembershipIsPremiumPlus(state),
|
|
userCountry: selectUserCountry(state),
|
|
currentTheme: selectClientSetting(state, SETTINGS.THEME),
|
|
});
|
|
|
|
const perform = {
|
|
doSetAdBlockerFound,
|
|
};
|
|
|
|
export default connect(select, perform)(AdsBanner);
|