|
@@ -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
|
}
|