d9bf72a351
sync settings backout nav cases and anon preference key more robust backout header put notificationSettings under backout bar review changes
18 lines
671 B
JavaScript
18 lines
671 B
JavaScript
import { connect } from 'react-redux';
|
|
import { SETTINGS } from 'lbry-redux';
|
|
import { doSetAutoLaunch } from 'redux/actions/settings';
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
import { doToast } from 'redux/actions/notifications';
|
|
import SettingAutoLaunch from './view';
|
|
|
|
const select = state => ({
|
|
autoLaunch: makeSelectClientSetting(SETTINGS.AUTO_LAUNCH)(state),
|
|
language: makeSelectClientSetting(SETTINGS.LANGUAGE)(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
showToast: options => dispatch(doToast(options)),
|
|
setAutoLaunch: value => dispatch(doSetAutoLaunch(value)),
|
|
});
|
|
|
|
export default connect(select, perform)(SettingAutoLaunch);
|