|
@@ -2,9 +2,8 @@ import * as React from 'react';
|
|
|
|
|
|
|
|
import { Remove as RemoveIcon, Add as AddIcon } from '@mui/icons-material';
|
|
import { Remove as RemoveIcon, Add as AddIcon } from '@mui/icons-material';
|
|
|
import {
|
|
import {
|
|
|
- Card,CardContent,Avatar,Checkbox,List,Tooltip,
|
|
|
|
|
|
|
+ Card,CardContent,Avatar,Checkbox,List,Tooltip,Fade,
|
|
|
ListItem,ListItemButton,ListItemIcon,ListItemText,
|
|
ListItem,ListItemButton,ListItemIcon,ListItemText,
|
|
|
- CardActions,Button,Fade,Slide
|
|
|
|
|
} from '@mui/material'
|
|
} from '@mui/material'
|
|
|
import { deepPurple } from '@mui/material/colors';
|
|
import { deepPurple } from '@mui/material/colors';
|
|
|
|
|
|
|
@@ -102,20 +101,20 @@ function CheckboxesGroup(props) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export function Question({quiz, index, current}) {
|
|
export function Question({quiz, index, current}) {
|
|
|
- let { instrucciondepregunta, respuestas,id } = quiz
|
|
|
|
|
- let checked = index ===current;
|
|
|
|
|
|
|
+ let { instrucciondepregunta, respuestas} = quiz
|
|
|
|
|
+ let checked = index === current;
|
|
|
return (
|
|
return (
|
|
|
<Fade in={checked} unmountOnExit>
|
|
<Fade in={checked} unmountOnExit>
|
|
|
- <Card className="question_form" sx={{ minWidth: 275, margin: '30px !important', borderLeft: '5px solid var(--main)'}}>
|
|
|
|
|
- <CardContent>
|
|
|
|
|
- <div variant="body2">
|
|
|
|
|
- <List>
|
|
|
|
|
- <CheckboxexHeader group={index} title={instrucciondepregunta}/>
|
|
|
|
|
- </List>
|
|
|
|
|
- <CheckboxesGroup quiz={respuestas} />
|
|
|
|
|
- </div>
|
|
|
|
|
- </CardContent>
|
|
|
|
|
- </Card>
|
|
|
|
|
|
|
+ <Card className="question_form">
|
|
|
|
|
+ <CardContent>
|
|
|
|
|
+ <div variant="body2">
|
|
|
|
|
+ <List>
|
|
|
|
|
+ <CheckboxexHeader group={index} title={instrucciondepregunta}/>
|
|
|
|
|
+ </List>
|
|
|
|
|
+ <CheckboxesGroup quiz={respuestas} />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </CardContent>
|
|
|
|
|
+ </Card>
|
|
|
</Fade>
|
|
</Fade>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|