mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-27 23:06:29 -04:00
Use react-query for root folders
New: Add tooltip for empty root folders Closes #8196
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import RootFolderAppState from 'App/State/RootFolderAppState';
|
||||
import createSortedSectionSelector from 'Store/Selectors/createSortedSectionSelector';
|
||||
import RootFolder from 'typings/RootFolder';
|
||||
import sortByProp from 'Utilities/Array/sortByProp';
|
||||
|
||||
export default function createRootFoldersSelector() {
|
||||
return createSelector(
|
||||
createSortedSectionSelector<RootFolder, RootFolderAppState>(
|
||||
'rootFolders',
|
||||
sortByProp('path')
|
||||
),
|
||||
(rootFolders: RootFolderAppState) => rootFolders
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user