Initial commit

This commit is contained in:
2025-10-04 18:22:24 +03:00
commit 2852c2c054
291 changed files with 38109 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
export type AppErrorState = {
errorCode: number;
};
const initialState: AppErrorState = {
errorCode: 200,
};
export const appErrorSlice = createSlice({
name: "appError",
initialState,
reducers: {
setErrorCode(state, action: PayloadAction<number>) {
state.errorCode = action.payload;
// if(errorCode === 401 && store.getState().auth.isActivated)dispach()
},
},
});
export const { setErrorCode } = appErrorSlice.actions;
export default appErrorSlice.reducer;