14 lines
460 B
JavaScript
14 lines
460 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import { doSetDaemonSetting } from 'redux/actions/settings';
|
||
|
import { selectDaemonSettings } from 'redux/selectors/settings';
|
||
|
import MaxPurchasePrice from './view';
|
||
|
|
||
|
const select = (state) => ({
|
||
|
daemonSettings: selectDaemonSettings(state),
|
||
|
});
|
||
|
const perform = (dispatch) => ({
|
||
|
setDaemonSetting: (key, value) => dispatch(doSetDaemonSetting(key, value)),
|
||
|
});
|
||
|
|
||
|
export default connect(select, perform)(MaxPurchasePrice);
|