lbry-desktop/ui/component/homepageSort/index.js
infinite-persistence 5b16b3b058 Ability to customize homepage
Ticket: 1145

- Limited to premium for now (early access).
- Needed to handle custom categories from non-English homepages.
2022-03-23 15:35:27 -04:00

13 lines
440 B
JavaScript

import { connect } from 'react-redux';
import HomepageSort from './view';
import * as SETTINGS from 'constants/settings';
import { selectClientSetting, selectHomepageData } from 'redux/selectors/settings';
const select = (state) => ({
homepageData: selectHomepageData(state),
homepageOrder: selectClientSetting(state, SETTINGS.HOMEPAGE_ORDER),
});
// const perform = (dispatch) => ({});
export default connect(select)(HomepageSort);