d9bf72a351
sync settings backout nav cases and anon preference key more robust backout header put notificationSettings under backout bar review changes
15 lines
486 B
JavaScript
15 lines
486 B
JavaScript
import { connect } from 'react-redux';
|
|
import { SETTINGS } from 'lbry-redux';
|
|
import { doSetLanguage } from 'redux/actions/settings';
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
import SettingLanguage from './view';
|
|
|
|
const select = state => ({
|
|
language: makeSelectClientSetting(SETTINGS.LANGUAGE)(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
setLanguage: value => dispatch(doSetLanguage(value)),
|
|
});
|
|
|
|
export default connect(select, perform)(SettingLanguage);
|