mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 08:27:49 +01:00
18 lines
424 B
TypeScript
18 lines
424 B
TypeScript
import { combineReducers } from "redux";
|
|
import { persistReducer } from "redux-persist";
|
|
import storage from "redux-persist/lib/storage";
|
|
import { authReducer, IAuthState } from "~redux/auth/reducer";
|
|
|
|
export interface IAppState {
|
|
auth: IAuthState;
|
|
}
|
|
|
|
const authPersistConfig = {
|
|
key: "jwt",
|
|
storage,
|
|
};
|
|
|
|
export const rootReducer = combineReducers({
|
|
auth: persistReducer(authPersistConfig, authReducer),
|
|
});
|