5b16b3b058
Ticket: 1145 - Limited to premium for now (early access). - Needed to handle custom categories from non-English homepages.
19 lines
652 B
JavaScript
19 lines
652 B
JavaScript
import { connect } from 'react-redux';
|
|
import ModalCustomizeHomepage from './view';
|
|
import * as SETTINGS from 'constants/settings';
|
|
import { doHideModal } from 'redux/actions/app';
|
|
import { doSetClientSetting } from 'redux/actions/settings';
|
|
import { selectClientSetting } from 'redux/selectors/settings';
|
|
import { selectHasOdyseeMembership } from 'redux/selectors/user';
|
|
|
|
const select = (state) => ({
|
|
hasMembership: selectHasOdyseeMembership(state),
|
|
homepageOrder: selectClientSetting(state, SETTINGS.HOMEPAGE_ORDER),
|
|
});
|
|
|
|
const perform = {
|
|
doSetClientSetting,
|
|
doHideModal,
|
|
};
|
|
|
|
export default connect(select, perform)(ModalCustomizeHomepage);
|