ENCOA-315

This commit is contained in:
Carlos-Mesquita
2025-01-22 04:46:24 +00:00
parent 4724e98993
commit e36b24ea3f
12 changed files with 425 additions and 231 deletions

View File

@@ -26,7 +26,6 @@ export const initialState: ExamState = {
inactivity: 0,
shuffles: [],
bgColor: "bg-white",
evaluated: [],
user: undefined,
navigation: {
previousDisabled: false,
@@ -39,7 +38,6 @@ export const initialState: ExamState = {
reviewAll: false,
finalizeModule: false,
finalizeExam: false,
pendingEvaluation: false,
},
};
@@ -62,8 +60,6 @@ const useExamStore = create<ExamState & ExamFunctions>((set, get) => ({
setQuestionIndex: (questionIndex: number) => set(() => ({ questionIndex })),
setBgColor: (bgColor: string) => set(() => ({ bgColor })),
setEvaluated: (evaluated: UserSolution[]) => set(() => ({ evaluated })),
setNavigation: (updates: Partial<Navigation>) => set((state) => ({
navigation: {
...state.navigation,
@@ -166,7 +162,7 @@ export const usePersistentExamStore = create<ExamState & ExamFunctions>()(
saveStats: async () => { },
saveSession: async () => { },
setEvaluated: (evaluated: UserSolution[]) => {},
setEvalSolutions: (evaluated: UserSolution[]) => {},
reset: () => set(() => initialState),
dispatch: (action) => set((state) => rootReducer(state, action))