lbry-desktop/ui/component/homepageSelector/index.js
zeppi d7856b7618 settings use null when matching current browser language
default language functions

bugfix1

bugfix2

bugfix4
2020-11-23 14:12:31 -05:00

14 lines
416 B
JavaScript

import { connect } from 'react-redux';
import SelectHomepage from './view';
import { doSetHomepage } from 'redux/actions/settings';
import { selectHomepageCode } from 'redux/selectors/settings';
const select = state => ({
homepage: selectHomepageCode(state),
});
const perform = dispatch => ({
setHomepage: value => dispatch(doSetHomepage(value)),
});
export default connect(select, perform)(SelectHomepage);