|
@@ -11,6 +11,7 @@ export function HomeUser(){
|
|
|
const auth = useAuth();
|
|
const auth = useAuth();
|
|
|
const token = useRef(auth.getToken());
|
|
const token = useRef(auth.getToken());
|
|
|
const [tests, setTests] = useState([]);
|
|
const [tests, setTests] = useState([]);
|
|
|
|
|
+ const [password, setPasword] = useState({});
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
|
|
|
|
@@ -19,8 +20,10 @@ export function HomeUser(){
|
|
|
rest
|
|
rest
|
|
|
.get(token.current)
|
|
.get(token.current)
|
|
|
.then(({ data }) => {
|
|
.then(({ data }) => {
|
|
|
- console.log("data >>> ", data)
|
|
|
|
|
|
|
+ console.log("DATA -> ",data)
|
|
|
setTests(data.tests)
|
|
setTests(data.tests)
|
|
|
|
|
+ delete data.tests
|
|
|
|
|
+ setPasword(data);
|
|
|
})
|
|
})
|
|
|
.catch(erro => {
|
|
.catch(erro => {
|
|
|
console.error("ERR : ", erro)
|
|
console.error("ERR : ", erro)
|
|
@@ -38,14 +41,11 @@ export function HomeUser(){
|
|
|
</h2>
|
|
</h2>
|
|
|
<h3>Instrucciones Generales</h3>
|
|
<h3>Instrucciones Generales</h3>
|
|
|
<Typography>
|
|
<Typography>
|
|
|
- Bienvenido, el sistema tiene como objetivo evaluar diferentes caracteristicas como medir y cuantificar los procesos cognoscitivos de la mente humana.
|
|
|
|
|
-
|
|
|
|
|
- Parar resolver las pruebas que estan asignadas te recomendamos busques un lugar apropiado ya que necesitaras en promedio 2 horas libre y es importante que se tenga el 100% de tu concentracion.
|
|
|
|
|
|
|
|
|
|
|
|
+Bienvenido, el sistema tiene como objetivo evaluar diferentes características como medir y cuantificar los procesos cognoscitivos de la mente humana. Parar resolver las pruebas que están asignadas te recomendamos busques un lugar apropiado, ya que necesitaras en promedio 2 horas libre y es importante que se tenga el 100% de tu concentración.
|
|
|
</Typography>
|
|
</Typography>
|
|
|
-
|
|
|
|
|
<Divider style={{margin : 5}}/>
|
|
<Divider style={{margin : 5}}/>
|
|
|
-
|
|
|
|
|
|
|
+ <h5>Pruebas para {password.nombrepuesto}</h5>
|
|
|
<div className="test_list" style={{ marginTop :15 }}>
|
|
<div className="test_list" style={{ marginTop :15 }}>
|
|
|
{
|
|
{
|
|
|
tests.map( test => {
|
|
tests.map( test => {
|
|
@@ -55,9 +55,6 @@ export function HomeUser(){
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</Paper>
|
|
</Paper>
|
|
|
<Button onClick={auth.logout}>Salir</Button>
|
|
<Button onClick={auth.logout}>Salir</Button>
|
|
|
</Box>
|
|
</Box>
|