mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 07:37:10 -07:00
UI Action Handler Changes, Misc Fixes
This commit is contained in:
parent
7825319d89
commit
cd5b658196
193 changed files with 6992 additions and 6341 deletions
20
frontend/src/Store/Actions/reducers.js
Normal file
20
frontend/src/Store/Actions/reducers.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { combineReducers } from 'redux';
|
||||
import { enableBatching } from 'redux-batched-actions';
|
||||
import { routerReducer } from 'react-router-redux';
|
||||
import actions from 'Store/Actions';
|
||||
|
||||
const defaultState = {};
|
||||
|
||||
const reducers = {
|
||||
routing: routerReducer
|
||||
};
|
||||
|
||||
actions.forEach((action) => {
|
||||
const section = action.section;
|
||||
|
||||
defaultState[section] = action.defaultState;
|
||||
reducers[section] = action.reducers;
|
||||
});
|
||||
|
||||
export { defaultState };
|
||||
export default enableBatching(combineReducers(reducers));
|
Loading…
Add table
Add a link
Reference in a new issue