Browse Source

using dispatch

amenpunk 2 years ago
parent
commit
8de6933749
3 changed files with 3 additions and 7 deletions
  1. 0 5
      src/Components/Test/Cleaver/Question.jsx
  2. 3 1
      src/Pages/Prueba.jsx
  3. 0 1
      src/Slices/cleaverSlice.js

+ 0 - 5
src/Components/Test/Cleaver/Question.jsx

@@ -1,5 +1,4 @@
1 1
 import * as React from 'react';
2
-
3 2
 import { Remove as RemoveIcon, Add as AddIcon } from '@mui/icons-material';
4 3
 import {
5 4
   Card,CardContent,Avatar,Checkbox,List,Tooltip,Fade,
@@ -60,7 +59,6 @@ function CheckboxesGroup(props) {
60 59
           B: resp[index] ? resp[index].B : 0
61 60
         }
62 61
       }
63
-      // let final = Object.assign(resp,temp);
64 62
       dispatch(setResponse(temp))
65 63
     }
66 64
   };
@@ -75,7 +73,6 @@ function CheckboxesGroup(props) {
75 73
           A: resp[index] ? resp[index].A : 0
76 74
         }
77 75
       }
78
-      // let final = Object.assign(resp,temp)
79 76
       dispatch(setResponse(temp))
80 77
     }
81 78
   };
@@ -84,9 +81,7 @@ function CheckboxesGroup(props) {
84 81
     <List sx={{ width: '100%', bgcolor: 'background.paper' }}>
85 82
 
86 83
       {quiz.map((value) => {
87
-        // console.log("QUIZ VALUE: ", value)
88 84
         const labelId = `checkbox-list-label-${value.id}`;
89
-
90 85
         return (
91 86
           <ListItem key={value.id}>
92 87
             <ListItemButton dense>

+ 3 - 1
src/Pages/Prueba.jsx

@@ -40,8 +40,10 @@ export function Prueba() {
40 40
       "score": "0",
41 41
       "mensaje": "0",
42 42
       "mensaje2": "0",
43
-      "idcontrasenia": profile.role.passid,
43
+      //candidatoinpwd -> idSuperContraseña -> viene al hacer login
44
+      "idcontrasenia": profile.role.passid, // ya no se va enviar
44 45
       "nombre": "assing CLEVAERR"
46
+      //cattest_id // catalogo de examenes -> viene del api del catalogo del admin
45 47
     }
46 48
 
47 49
     let rest = new Service("/prueba/asignacion");

+ 0 - 1
src/Slices/cleaverSlice.js

@@ -6,7 +6,6 @@ export const cleaverSlice = createSlice({
6 6
   name : 'cleaver',
7 7
   reducers : {
8 8
     setResponse : (state, action) => {
9
-      // console.log(action.payload)
10 9
       state.responses = { ...state.responses, ...action.payload  }
11 10
     }
12 11
   },