浏览代码

clean version pre calification

amenpunk 2 年之前
父节点
当前提交
494a0f8781
共有 4 个文件被更改,包括 18 次插入20 次删除
  1. 3 0
      src/App.css
  2. 13 14
      src/Components/Test/Cleaver/Question.jsx
  3. 1 1
      src/Components/User.jsx
  4. 1 5
      src/Pages/Pruebas/Cleaver.jsx

+ 3 - 0
src/App.css

@@ -344,4 +344,7 @@
344 344
 .question_form{
345 345
   grid-column: 1;
346 346
   grid-row: 1;
347
+  min-width: 275;
348
+  margin: 10px !important; 
349
+  border-left: 5px solid var(--main);
347 350
 }

+ 13 - 14
src/Components/Test/Cleaver/Question.jsx

@@ -2,9 +2,8 @@ import * as React from 'react';
2 2
 
3 3
 import { Remove as RemoveIcon, Add as AddIcon } from '@mui/icons-material';
4 4
 import {
5
-  Card,CardContent,Avatar,Checkbox,List,Tooltip,
5
+  Card,CardContent,Avatar,Checkbox,List,Tooltip,Fade,
6 6
   ListItem,ListItemButton,ListItemIcon,ListItemText,
7
-  CardActions,Button,Fade,Slide
8 7
 } from '@mui/material'
9 8
 import { deepPurple } from '@mui/material/colors';
10 9
 
@@ -102,20 +101,20 @@ function CheckboxesGroup(props) {
102 101
 }
103 102
 
104 103
 export function Question({quiz, index, current}) {
105
-  let { instrucciondepregunta, respuestas,id } = quiz
106
-  let checked = index ===current;
104
+  let { instrucciondepregunta, respuestas} = quiz
105
+  let checked = index === current;
107 106
   return (
108 107
     <Fade in={checked} unmountOnExit>
109
-    <Card className="question_form" sx={{ minWidth: 275, margin: '30px !important', borderLeft: '5px solid var(--main)'}}>
110
-      <CardContent>
111
-        <div variant="body2">
112
-          <List>
113
-            <CheckboxexHeader  group={index} title={instrucciondepregunta}/>
114
-          </List>
115
-          <CheckboxesGroup quiz={respuestas} />
116
-        </div>
117
-      </CardContent>
118
-    </Card>
108
+      <Card className="question_form">
109
+        <CardContent>
110
+          <div variant="body2">
111
+            <List>
112
+              <CheckboxexHeader  group={index} title={instrucciondepregunta}/>
113
+            </List>
114
+            <CheckboxesGroup quiz={respuestas} />
115
+          </div>
116
+        </CardContent>
117
+      </Card>
119 118
     </Fade>
120 119
   );
121 120
 }

+ 1 - 1
src/Components/User.jsx

@@ -77,7 +77,7 @@ const Drawer = styled(MuiDrawer,
77 77
 
78 78
 export function User() {
79 79
 
80
-    const [open, setOpen] = React.useState(false);
80
+    const [open, setOpen] = React.useState(true);
81 81
 
82 82
     const isMovil = Size('(max-width:770px)');
83 83
     const auth = useAuth();

+ 1 - 5
src/Pages/Pruebas/Cleaver.jsx

@@ -2,14 +2,10 @@ import React, { useMemo } from 'react'
2 2
 import { Service } from '../../Utils/HTTP'
3 3
 import useAuth from '../../Auth/useAuth.js';
4 4
 import { Question } from '../../Components/Test/Cleaver/Question.jsx'
5
-import { Box,Button, Collapse, List, Slide } from '@mui/material'
6
-import { TransitionGroup } from 'react-transition-group';
7
-// import * as Scroll from 'react-scroll';
5
+import { Box,Button } from '@mui/material'
8 6
 
9 7
 export function Cleaver() {
10 8
 
11
-// var scroll = Scroll.animateScroll;
12
-
13 9
   let auth = useAuth();
14 10
   let token = useMemo(() => auth.getToken(), [auth])
15 11