|
@@ -1,32 +1,44 @@
|
1
|
|
-import '../../App.css'
|
|
1
|
+import React from 'react'
|
2
|
2
|
import {
|
3
|
3
|
Skeleton, Box, IconButton, TableCell, TableContainer,
|
4
|
|
- Table, TableRow, Paper, TableBody
|
|
4
|
+ Table, TableRow, Paper, TableBody,
|
|
5
|
+ Tooltip,
|
5
|
6
|
} from '@mui/material';
|
6
|
|
-
|
7
|
|
-import { Col, Row } from 'react-bootstrap'
|
8
|
|
-
|
9
|
|
-import React from 'react'
|
10
|
|
-
|
11
|
7
|
import {
|
12
|
8
|
CheckBox as CheckBoxIcon,
|
13
|
9
|
FmdBad as FmdBadIcon,
|
14
|
10
|
NewReleases as NewReleasesIcon
|
15
|
11
|
} from '@mui/icons-material'
|
|
12
|
+import { useNavigate } from 'react-router-dom'
|
|
13
|
+
|
|
14
|
+import { Col, Row } from 'react-bootstrap'
|
16
|
15
|
|
17
|
16
|
|
18
|
17
|
const big_as = 70
|
19
|
18
|
|
20
|
19
|
function Asignaciones(props) {
|
21
|
|
- let { asign } = props;
|
22
|
|
- let { cattest } = asign;
|
|
20
|
+ let navigate = useNavigate()
|
|
21
|
+ console.log(props)
|
|
22
|
+ let { cattest, calificacionescleaver: test_result, id: SuperPWD } = props.asign;
|
|
23
|
+
|
23
|
24
|
return (
|
24
|
25
|
<tr>
|
25
|
26
|
<td>
|
26
|
27
|
{cattest.decription}
|
27
|
|
- <IconButton color="primary" aria-label="puesto_status" components="label">
|
28
|
|
- <CheckBoxIcon />
|
29
|
|
- </IconButton>
|
|
28
|
+ {
|
|
29
|
+ test_result.length > 0 ?
|
|
30
|
+ (
|
|
31
|
+ <Tooltip title="Mostrar resultados">
|
|
32
|
+ <IconButton
|
|
33
|
+ onClick={() => navigate('/dashboard/resultados/' +SuperPWD)}
|
|
34
|
+ style={{ color: '#0bd641' }}
|
|
35
|
+ aria-label="puesto_status"
|
|
36
|
+ components="label">
|
|
37
|
+ <CheckBoxIcon />
|
|
38
|
+ </IconButton>
|
|
39
|
+ </Tooltip>
|
|
40
|
+ ) : null
|
|
41
|
+ }
|
30
|
42
|
</td>
|
31
|
43
|
</tr>
|
32
|
44
|
)
|
|
@@ -36,10 +48,6 @@ function TableUser(props) {
|
36
|
48
|
let { user } = props;
|
37
|
49
|
let { asignaciones, candi } = user
|
38
|
50
|
|
39
|
|
- if (asignaciones.lenght <= 0) {
|
40
|
|
- return <h1>Sin datos</h1>
|
41
|
|
- }
|
42
|
|
-
|
43
|
51
|
return (
|
44
|
52
|
<TableRow >
|
45
|
53
|
<TableCell
|
|
@@ -52,8 +60,8 @@ function TableUser(props) {
|
52
|
60
|
<tbody >
|
53
|
61
|
{
|
54
|
62
|
asignaciones?.length > 0 ?
|
55
|
|
- asignaciones.map(a => <Asignaciones key={a.id} asign={a} />)
|
56
|
|
- : <SinAsignaciones />
|
|
63
|
+ asignaciones.map(a => <Asignaciones key={a.id} asign={a} />)
|
|
64
|
+ : <SinAsignaciones />
|
57
|
65
|
}
|
58
|
66
|
</tbody>
|
59
|
67
|
</table>
|
|
@@ -65,10 +73,10 @@ function TableUser(props) {
|
65
|
73
|
function SinAsignaciones() {
|
66
|
74
|
return (
|
67
|
75
|
<tr style={{ padding: 5 }}>
|
68
|
|
- <center className="home_letter">
|
|
76
|
+ <td style={{ textAlign: 'center' }} className="home_letter">
|
69
|
77
|
<i> El candidato aun no cuenta con asignaciones... </i>
|
70
|
78
|
<FmdBadIcon style={{ color: 'var(--main)' }} />
|
71
|
|
- </center>
|
|
79
|
+ </td>
|
72
|
80
|
</tr>
|
73
|
81
|
)
|
74
|
82
|
}
|
|
@@ -103,12 +111,12 @@ export function Candidato(props) {
|
103
|
111
|
|
104
|
112
|
function SinAsignRealizadas() {
|
105
|
113
|
return (
|
106
|
|
- <div style={{ padding: 5 }}>
|
107
|
|
- <center className="home_letter">
|
|
114
|
+ <tr style={{ padding: 5 }}>
|
|
115
|
+ <td style={{ textAlign: 'center' }} className="home_letter">
|
108
|
116
|
<i> No se ha relizado ninguna asignacion... </i>
|
109
|
117
|
<NewReleasesIcon style={{ color: '#e8eb34' }} />
|
110
|
|
- </center>
|
111
|
|
- </div>
|
|
118
|
+ </td>
|
|
119
|
+ </tr>
|
112
|
120
|
)
|
113
|
121
|
}
|
114
|
122
|
|