mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-21 22:05:38 -04:00
Use react-query for Naming settings
This commit is contained in:
@@ -17,8 +17,6 @@ import indexers from './Settings/indexers';
|
||||
import languages from './Settings/languages';
|
||||
import mediaManagement from './Settings/mediaManagement';
|
||||
import metadata from './Settings/metadata';
|
||||
import naming from './Settings/naming';
|
||||
import namingExamples from './Settings/namingExamples';
|
||||
|
||||
export * from './Settings/autoTaggingSpecifications';
|
||||
export * from './Settings/autoTaggings';
|
||||
@@ -37,8 +35,6 @@ export * from './Settings/indexers';
|
||||
export * from './Settings/languages';
|
||||
export * from './Settings/mediaManagement';
|
||||
export * from './Settings/metadata';
|
||||
export * from './Settings/naming';
|
||||
export * from './Settings/namingExamples';
|
||||
|
||||
//
|
||||
// Variables
|
||||
@@ -66,9 +62,7 @@ export const defaultState = {
|
||||
indexers: indexers.defaultState,
|
||||
languages: languages.defaultState,
|
||||
mediaManagement: mediaManagement.defaultState,
|
||||
metadata: metadata.defaultState,
|
||||
naming: naming.defaultState,
|
||||
namingExamples: namingExamples.defaultState
|
||||
metadata: metadata.defaultState
|
||||
};
|
||||
|
||||
export const persistState = [
|
||||
@@ -95,9 +89,7 @@ export const actionHandlers = handleThunks({
|
||||
...indexers.actionHandlers,
|
||||
...languages.actionHandlers,
|
||||
...mediaManagement.actionHandlers,
|
||||
...metadata.actionHandlers,
|
||||
...naming.actionHandlers,
|
||||
...namingExamples.actionHandlers
|
||||
...metadata.actionHandlers
|
||||
});
|
||||
|
||||
//
|
||||
@@ -120,8 +112,6 @@ export const reducers = createHandleActions({
|
||||
...indexers.reducers,
|
||||
...languages.reducers,
|
||||
...mediaManagement.reducers,
|
||||
...metadata.reducers,
|
||||
...naming.reducers,
|
||||
...namingExamples.reducers
|
||||
...metadata.reducers
|
||||
|
||||
}, defaultState, section);
|
||||
|
||||
Reference in New Issue
Block a user