17 lines
467 B
JavaScript
17 lines
467 B
JavaScript
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);
|