lbry-desktop/ui/js/page/settings/index.js
2017-06-06 17:19:12 -04:00

15 lines
464 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doSetDaemonSetting } from "actions/settings";
import { selectDaemonSettings } from "selectors/settings";
import SettingsPage from "./view";
const select = state => ({
daemonSettings: selectDaemonSettings(state),
});
const perform = dispatch => ({
setDaemonSetting: (key, value) => dispatch(doSetDaemonSetting(key, value)),
});
export default connect(select, perform)(SettingsPage);