add v2 sidebar
This commit is contained in:
1 parent
fc9018e314
commit
3ae2f857d4
10 files changed
+279
-6
No files matched your search
+3
-1
@@ -1,6 +1,7 @@
|
||||
import { configureStore, combineReducers } from "@reduxjs/toolkit";
|
||||
|
||||
import authReducer from "./Features/Auth/authSlice";
|
||||
import v2AuthReducer from "./Features/Auth/v2AuthSlice";
|
||||
import uiReducer from "./Features/UI/uiSlice";
|
||||
import storage from "redux-persist/lib/storage";
|
||||
import { persistReducer, persistStore, createTransform } from "redux-persist";
|
||||
@@ -19,12 +20,13 @@ const authTransform = createTransform(
|
||||
const persistConfig = {
|
||||
key: "root",
|
||||
storage,
|
||||
whitelist: ["auth", "ui"],
|
||||
whitelist: ["auth", "v2Auth", "ui"],
|
||||
transforms: [authTransform],
|
||||
};
|
||||
|
||||
const rootReducer = combineReducers({
|
||||
auth: authReducer,
|
||||
v2Auth: v2AuthReducer,
|
||||
ui: uiReducer,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user