You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Prowlarr/frontend/src/History/HistoryOptionsConnector.js

22 lines
562 B

import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { saveGeneralSettings } from 'Store/Actions/settingsActions';
import HistoryOptions from './HistoryOptions';
function createMapStateToProps() {
return createSelector(
(state) => state.settings.general.item,
(generalSettings) => {
return {
...generalSettings
};
}
);
}
const mapDispatchToProps = {
dispatchSaveGeneralSettings: saveGeneralSettings
};
export default connect(createMapStateToProps, mapDispatchToProps)(HistoryOptions);