mirror of
https://github.com/zoriya/flood.git
synced 2025-12-21 14:45:14 +00:00
Rearrange app directory structure
This commit is contained in:
20
client/source/scripts/selectors/rootSelector.js
Normal file
20
client/source/scripts/selectors/rootSelector.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import { createSelector } from 'reselect';
|
||||
|
||||
import clientSelector from './clientSelector';
|
||||
import torrentSelector from './torrentSelector';
|
||||
import uiSelector from './uiSelector';
|
||||
|
||||
const rootSelector = createSelector(
|
||||
clientSelector,
|
||||
torrentSelector,
|
||||
uiSelector,
|
||||
(client, torrents, ui) => {
|
||||
return {
|
||||
client,
|
||||
torrents,
|
||||
ui
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
export default rootSelector;
|
||||
Reference in New Issue
Block a user