added all components
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user