3c4ccdd2fe
## Why - No memo required (no transformation). - `makeSelect*` is an incorrect pattern. ## Changes - Replaced makeSelectClientSetting with selectClientSetting. - Remove unused selectShowRepostedContent.
15 lines
556 B
JavaScript
15 lines
556 B
JavaScript
import { connect } from 'react-redux';
|
|
import * as SETTINGS from 'constants/settings';
|
|
import { doSetAppToTrayWhenClosed } from 'redux/actions/settings';
|
|
import { selectClientSetting } from 'redux/selectors/settings';
|
|
import SettingClosingBehavior from './view';
|
|
|
|
const select = (state) => ({
|
|
toTrayWhenClosed: selectClientSetting(state, SETTINGS.TO_TRAY_WHEN_CLOSED),
|
|
});
|
|
|
|
const perform = (dispatch) => ({
|
|
setToTrayWhenClosed: (value) => dispatch(doSetAppToTrayWhenClosed(value)),
|
|
});
|
|
|
|
export default connect(select, perform)(SettingClosingBehavior);
|