lbry-desktop/ui/component/nagLocaleSwitch/index.js

18 lines
467 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doSetLanguage, doSetHomepage } from 'redux/actions/settings';
import { selectHomepageCode } from 'redux/selectors/settings';
import { doOpenModal } from 'redux/actions/app';
import NagLocaleSwitch from './view';
const select = (state) => ({
homepageCode: selectHomepageCode(state),
});
const perform = {
doSetLanguage,
doSetHomepage,
doOpenModal,
};
export default connect(select, perform)(NagLocaleSwitch);