🔼 Upgraded to react-router v6
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
AIRDCPP_DOWNLOAD_PROGRESS_TICK,
|
||||
AIRDCPP_BUNDLES_FETCHED,
|
||||
} from "../constants/action-types";
|
||||
import { LOCATION_CHANGE } from "connected-react-router";
|
||||
import { LOCATION_CHANGE } from "redux-first-history";
|
||||
import { difference } from "../shared/utils/object.utils";
|
||||
|
||||
const initialState = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isEmpty, pull } from "lodash";
|
||||
import { isEmpty } from "lodash";
|
||||
import {
|
||||
CV_API_CALL_IN_PROGRESS,
|
||||
CV_SEARCH_SUCCESS,
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LOCATION_CHANGE } from "connected-react-router";
|
||||
import { LOCATION_CHANGE } from "redux-first-history";
|
||||
import {
|
||||
RMQ_SOCKET_CONNECTED,
|
||||
IMS_COMICBOOK_METADATA_FETCHED,
|
||||
|
||||
@@ -1,17 +1,13 @@
|
||||
import { combineReducers } from "redux";
|
||||
import { connectRouter } from "connected-react-router";
|
||||
import comicinfoReducer from "../reducers/comicinfo.reducer";
|
||||
import fileOpsReducer from "../reducers/fileops.reducer";
|
||||
import airdcppReducer from "../reducers/airdcpp.reducer";
|
||||
import settingsReducer from "../reducers/settings.reducer";
|
||||
import { reducer as notifications } from "react-notification-system-redux";
|
||||
|
||||
export default (history) =>
|
||||
combineReducers({
|
||||
notifications,
|
||||
comicInfo: comicinfoReducer,
|
||||
fileOps: fileOpsReducer,
|
||||
airdcpp: airdcppReducer,
|
||||
settings: settingsReducer,
|
||||
router: connectRouter(history),
|
||||
});
|
||||
export const reducers = {
|
||||
notifications,
|
||||
comicInfo: comicinfoReducer,
|
||||
fileOps: fileOpsReducer,
|
||||
airdcpp: airdcppReducer,
|
||||
settings: settingsReducer,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user