mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
029a0e4e20
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
22 lines
553 B
JavaScript
22 lines
553 B
JavaScript
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import { testAllIndexers } from 'Store/Actions/settingsActions';
|
|
import IndexerSettings from './IndexerSettings';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.settings.indexers.isTestingAll,
|
|
(isTestingAll) => {
|
|
return {
|
|
isTestingAll
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|
|
const mapDispatchToProps = {
|
|
dispatchTestAllIndexers: testAllIndexers
|
|
};
|
|
|
|
export default connect(createMapStateToProps, mapDispatchToProps)(IndexerSettings);
|