lbry-desktop/ui/reducers.js

50 lines
1.9 KiB
JavaScript
Raw Normal View History

2019-04-04 23:05:23 +02:00
import { combineReducers } from 'redux';
import { connectRouter } from 'connected-react-router';
import { claimsReducer, fileInfoReducer, walletReducer, publishReducer } from 'lbry-redux';
2020-10-02 17:03:25 +02:00
import { costInfoReducer, blacklistReducer, filteredReducer, homepageReducer, statsReducer, webReducer } from 'lbryinc';
2019-04-04 23:05:23 +02:00
import appReducer from 'redux/reducers/app';
import tagsReducer from 'redux/reducers/tags';
2019-04-04 23:05:23 +02:00
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 19:38:18 +02:00
import commentsReducer from 'redux/reducers/comments';
import blockedReducer from 'redux/reducers/blocked';
2021-03-25 12:24:49 +01:00
import coinSwapReducer from 'redux/reducers/coinSwap';
2020-07-27 22:04:12 +02:00
import searchReducer from 'redux/reducers/search';
2020-10-02 21:18:53 +02:00
import reactionsReducer from 'redux/reducers/reactions';
2020-10-02 17:03:25 +02:00
import syncReducer from 'redux/reducers/sync';
import reportContentReducer from 'redux/reducers/reportContent';
2021-03-25 12:24:49 +01:00
export default (history) =>
2019-04-04 23:05:23 +02:00
combineReducers({
router: connectRouter(history),
app: appReducer,
blacklist: blacklistReducer,
filtered: filteredReducer,
2019-04-04 23:05:23 +02:00
claims: claimsReducer,
2020-06-23 19:38:18 +02:00
comments: commentsReducer,
2019-04-04 23:05:23 +02:00
content: contentReducer,
costInfo: costInfoReducer,
fileInfo: fileInfoReducer,
homepage: homepageReducer,
notifications: notificationsReducer,
publish: publishReducer,
2020-10-02 21:18:53 +02:00
reactions: reactionsReducer,
reportContent: reportContentReducer,
2019-04-04 23:05:23 +02:00
rewards: rewardsReducer,
search: searchReducer,
settings: settingsReducer,
stats: statsReducer,
subscriptions: subscriptionsReducer,
2019-07-02 23:00:05 +02:00
tags: tagsReducer,
2019-08-02 17:11:31 +02:00
blocked: blockedReducer,
2021-03-25 12:24:49 +01:00
coinSwap: coinSwapReducer,
2019-04-04 23:05:23 +02:00
user: userReducer,
wallet: walletReducer,
2019-08-20 14:29:59 +02:00
sync: syncReducer,
web: webReducer,
2019-04-04 23:05:23 +02:00
});