Anul 3 Semestrul 1

This commit is contained in:
2025-02-06 20:33:26 +02:00
parent 0b130ee18c
commit 184f3bd92e
313 changed files with 348499 additions and 0 deletions
@@ -0,0 +1,4 @@
export type ErrorStatus = {
status: boolean,
message: string
}
@@ -0,0 +1,17 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { ErrorStatus } from "./errorStatus";
export const errorStatusSlice = createSlice({
name: "status",
initialState: { status: false, message: "" } as ErrorStatus,
reducers: {
setErrorStatus: (state, action: PayloadAction<ErrorStatus>) => {
state.status = action.payload.status;
state.message = action.payload.message;
},
}
});
export const { setErrorStatus } = errorStatusSlice.actions
export default errorStatusSlice.reducer