added all components

This commit is contained in:
=
2026-04-24 17:03:42 +10:00
parent 1335275ed7
commit 4e2f4eb525
7 changed files with 161 additions and 46 deletions

View File

@@ -56,8 +56,8 @@ const listsSlice = createSlice({
}
},
mixUp: (state) => {
state.userAnswers = state.userAnswers.map((list) => {
if(typeof(list[0])==="boolean"){
state.userAnswers = state.userAnswers.map((list,index) => {
if(typeof(state.correctAnswers[index][0])==="boolean"){
return list.map(()=>false);
}
return shuffle<string|boolean>(list);
@@ -73,6 +73,6 @@ const listsSlice = createSlice({
});
// Экспортируем действия и редьюсер
export const { addList, setDraggedItems, mixUp, startTesting, stopTesting } = listsSlice.actions;
export const { addList, setDraggedItems,setCheckedItems, mixUp, startTesting, stopTesting } = listsSlice.actions;
export type { QuizState }
export default listsSlice.reducer;