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

17 lines
507 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';
const select = (state) => ({
2017-06-06 23:19:12 +02:00
daemonSettings: selectDaemonSettings(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);