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

18 lines
621 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doEnterSettingsPage, doExitSettingsPage } from 'redux/actions/settings';
import { selectDaemonSettings } from 'redux/selectors/settings';
import SettingsPage from './view';
2021-08-06 09:43:21 +02:00
import { selectUserVerifiedEmail } from 'redux/selectors/user';
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),
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);