d7856b7618
default language functions bugfix1 bugfix2 bugfix4
18 lines
659 B
JavaScript
18 lines
659 B
JavaScript
import { connect } from 'react-redux';
|
|
import { SETTINGS } from 'lbry-redux';
|
|
import { doSetAutoLaunch } from 'redux/actions/settings';
|
|
import { makeSelectClientSetting, selectLanguage } from 'redux/selectors/settings';
|
|
import { doToast } from 'redux/actions/notifications';
|
|
import SettingAutoLaunch from './view';
|
|
|
|
const select = state => ({
|
|
autoLaunch: makeSelectClientSetting(SETTINGS.AUTO_LAUNCH)(state),
|
|
language: selectLanguage(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
showToast: options => dispatch(doToast(options)),
|
|
setAutoLaunch: value => dispatch(doSetAutoLaunch(value)),
|
|
});
|
|
|
|
export default connect(select, perform)(SettingAutoLaunch);
|