lbry-desktop/ui/reducers.js

52 lines
1.7 KiB
JavaScript
Raw Normal View History

2019-04-04 17:05:23 -04:00
import { combineReducers } from 'redux';
import { connectRouter } from 'connected-react-router';
2020-07-27 16:04:12 -04:00
import { claimsReducer, fileInfoReducer, walletReducer, tagsReducer, publishReducer } from 'lbry-redux';
import {
costInfoReducer,
blacklistReducer,
filteredReducer,
homepageReducer,
statsReducer,
2019-08-20 08:29:59 -04:00
syncReducer,
webReducer,
} from 'lbryinc';
2019-04-04 17:05:23 -04:00
import appReducer from 'redux/reducers/app';
import contentReducer from 'redux/reducers/content';
import settingsReducer from 'redux/reducers/settings';
import subscriptionsReducer from 'redux/reducers/subscriptions';
import notificationsReducer from 'redux/reducers/notifications';
import rewardsReducer from 'redux/reducers/rewards';
import userReducer from 'redux/reducers/user';
2020-06-23 13:38:18 -04:00
import commentsReducer from 'redux/reducers/comments';
import blockedReducer from 'redux/reducers/blocked';
2020-07-27 16:04:12 -04:00
import searchReducer from 'redux/reducers/search';
2020-10-02 15:18:53 -04:00
import reactionsReducer from 'redux/reducers/reactions';
2019-04-04 17:05:23 -04:00
export default history =>
combineReducers({
router: connectRouter(history),
app: appReducer,
blacklist: blacklistReducer,
filtered: filteredReducer,
2019-04-04 17:05:23 -04:00
claims: claimsReducer,
2020-06-23 13:38:18 -04:00
comments: commentsReducer,
2019-04-04 17:05:23 -04:00
content: contentReducer,
costInfo: costInfoReducer,
fileInfo: fileInfoReducer,
homepage: homepageReducer,
notifications: notificationsReducer,
publish: publishReducer,
2020-10-02 15:18:53 -04:00
reactions: reactionsReducer,
2019-04-04 17:05:23 -04:00
rewards: rewardsReducer,
search: searchReducer,
settings: settingsReducer,
stats: statsReducer,
subscriptions: subscriptionsReducer,
2019-07-02 17:00:05 -04:00
tags: tagsReducer,
2019-08-02 11:11:31 -04:00
blocked: blockedReducer,
2019-04-04 17:05:23 -04:00
user: userReducer,
wallet: walletReducer,
2019-08-20 08:29:59 -04:00
sync: syncReducer,
web: webReducer,
2019-04-04 17:05:23 -04:00
});