lbry-desktop/ui/page/settings/index.js

20 lines
673 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doEnterSettingsPage, doExitSettingsPage } from 'redux/actions/settings';
import { selectDaemonSettings, selectLanguage } from 'redux/selectors/settings';
2021-08-06 09:43:21 +02:00
import { selectUserVerifiedEmail } from 'redux/selectors/user';
import SettingsPage from './view';
const select = (state) => ({
2017-06-06 23:19:12 +02:00
daemonSettings: selectDaemonSettings(state),
2019-11-22 22:13:00 +01:00
isAuthenticated: selectUserVerifiedEmail(state),
language: selectLanguage(state),
2017-06-06 06:21:55 +02:00
});
const perform = (dispatch) => ({
2020-09-04 17:02:30 +02:00
enterSettings: () => dispatch(doEnterSettingsPage()),
exitSettings: () => dispatch(doExitSettingsPage()),
2017-06-06 06:21:55 +02:00
});
export default connect(select, perform)(SettingsPage);