lbry-desktop/ui/component/nagLocaleSwitch/index.js
saltrafael 712e02db16
Use locale/get response to suggest homepage and language switch (#839)
* Use locale/get response to suggest homepage and language switch

* Fix language modal condition

* Fixes from review

* Fixes from review

* Fix gdpr

* string

* Fix multiple options behavior

* Fix gdpr and use only one fetch

* Only show if no languages set or loaded

* pt-br

* Fix ad

* Fix homepage select

* Fix zh langs
2022-03-02 09:44:01 -05:00

12 lines
325 B
JavaScript

import { connect } from 'react-redux';
import { doSetLanguage, doSetHomepage } from 'redux/actions/settings';
import { doOpenModal } from 'redux/actions/app';
import NagLocaleSwitch from './view';
const perform = {
doSetLanguage,
doSetHomepage,
doOpenModal,
};
export default connect(null, perform)(NagLocaleSwitch);