فهرست منبع

using dispatch

amenpunk 3 سال پیش
والد
کامیت
8de6933749
3فایلهای تغییر یافته به همراه3 افزوده شده و 7 حذف شده
  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 @@
 import * as React from 'react';
-
 import { Remove as RemoveIcon, Add as AddIcon } from '@mui/icons-material';
 import {
   Card,CardContent,Avatar,Checkbox,List,Tooltip,Fade,
@@ -60,7 +59,6 @@ function CheckboxesGroup(props) {
           B: resp[index] ? resp[index].B : 0
         }
       }
-      // let final = Object.assign(resp,temp);
       dispatch(setResponse(temp))
     }
   };
@@ -75,7 +73,6 @@ function CheckboxesGroup(props) {
           A: resp[index] ? resp[index].A : 0
         }
       }
-      // let final = Object.assign(resp,temp)
       dispatch(setResponse(temp))
     }
   };
@@ -84,9 +81,7 @@ function CheckboxesGroup(props) {
     <List sx={{ width: '100%', bgcolor: 'background.paper' }}>
 
       {quiz.map((value) => {
-        // console.log("QUIZ VALUE: ", value)
         const labelId = `checkbox-list-label-${value.id}`;
-
         return (
           <ListItem key={value.id}>
             <ListItemButton dense>

+ 3 - 1
src/Pages/Prueba.jsx

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

+ 0 - 1
src/Slices/cleaverSlice.js

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