Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11268 Rev 14879
Línea 34... Línea 34...
34
			}
34
			}
35
		</button>
35
		</button>
36
	)
36
	)
37
}
37
}
Línea 38... Línea 38...
38
 
38
 
Línea 39... Línea 39...
39
const Table = ({ data, headers, onDelete, allowEdit, allowDelete, onEdit }) => {
39
const Table = ({ data, headers, onDelete, allowEdit, allowDelete, allowUsersWhoApplied, onEdit, handleUserWhoApplied }) => {
40
 
40
 
41
	const initialSortKey = Object.values(headers)[0]
41
	const initialSortKey = Object.values(headers)[0]
Línea 81... Línea 81...
81
					})}
81
					})}
82
				</tr>
82
				</tr>
83
			</thead>
83
			</thead>
Línea 84... Línea 84...
84
 
84
 
85
			<tbody>
85
			<tbody>
86
				{sortedData().map((item, index) => {
86
				{sortedData().map((item) => {
Línea 87... Línea 87...
87
					const entries = Object.entries(item)
87
					const entries = Object.entries(item)
88
 
88
 
89
					return (
89
					return (
Línea 135... Línea 135...
135
														>
135
														>
136
															<i className="fa fa-trash" />
136
															<i className="fa fa-trash" />
137
															Borrar
137
															Borrar
138
														</button>
138
														</button>
139
													}
139
													}
140
													{/* {
140
													{
141
                                                        (allowUsersWhoApplied === "1")
141
														(allowUsersWhoApplied === '1' && element[1]['link_users_who_applied'])
-
 
142
														&&
-
 
143
														<button
142
                                                        &&
144
															className="btn btn-sm btn-primary btn-users-who-applied"
143
                                                        <button className="btn btn-sm btn-primary btn-users-who-applied">
145
															onClick={() => handleUserWhoApplied(element[1]['link_users_who_applied'])}
-
 
146
														>
144
                                                            <i className="fa fa-users" />
147
															<i className="fa fa-users" />
145
                                                            Quien aplicó
148
															Quien aplicó
146
                                                        </button>
149
														</button>
147
                                                    } */}
150
													}
148
												</td>
151
												</td>
149
											)
152
											)
150
										}
153
										}
Línea 151... Línea 154...
151
 
154