Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 6680 | Rev 6795 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6680 Rev 6794
Línea 36... Línea 36...
36
    );
36
    );
37
}
37
}
Línea 38... Línea 38...
38
 
38
 
Línea -... Línea 39...
-
 
39
const Table = ({ data, headers, onDelete, allowEdit, allowDelete }) => {
39
const Table = ({ data, headers, onDelete, allowEdit, allowDelete }) => {
40
 
40
 
41
    const initialSortKey = Object.values(headers)[0]
Línea 41... Línea 42...
41
    const [sortKey, setSortKey] = useState("name");
42
    const [sortKey, setSortKey] = useState(initialSortKey);
42
    const [sortOrder, setSortOrder] = useState("ascn");
43
    const [sortOrder, setSortOrder] = useState("ascn");
43
 
44
 
Línea 90... Línea 91...
90
                            {
91
                            {
91
                                entries.map((element) => {
92
                                entries.map((element) => {
Línea 92... Línea 93...
92
 
93
 
Línea 93... Línea 94...
93
                                    if (element[0] !== "id") {
94
                                    if (element[0] !== "id") {
94
 
95
 
95
                                        if (element[0] === "status") {
96
                                        if (element[0] === "details") {
96
                                            return (
-
 
97
                                                <td className="text-center">
97
                                            return (
98
                                                    {
98
                                                <td style={{ display: 'flex', gap: '5px' }}>
99
                                                        element[1] === 'a'
99
                                                    Estatus: {element[1]["status"]}
100
                                                            ? <i className='fa fa-check' style={{ color: '#5cb85c' }} />
-
 
101
                                                            : <i className='fa fa-close' style={{ color: 'red' }} />
100
                                                    Tipo de empleo: {element[1]["employment_type"]}
102
                                                    }
101
                                                    Aplicantes: {element[1]["users_who_applied"]}
103
                                                </td>
102
                                                </td>
Línea 104... Línea 103...
104
                                            )
103
                                            )