|
|
@@ -1,5 +1,10 @@
|
|
|
+import React, { useState } from 'react';
|
|
|
+import { Row, Col } from 'react-bootstrap';
|
|
|
+
|
|
|
import UpdateIcon from '@mui/icons-material/Update';
|
|
|
-import { Table } from 'react-bootstrap'
|
|
|
+import Typography from '@mui/material/Typography';
|
|
|
+import Pagination from '@mui/material/Pagination';
|
|
|
+import Stack from '@mui/material/Stack';
|
|
|
|
|
|
export default function Candidatos () {
|
|
|
|
|
|
@@ -18,6 +23,12 @@ export default function Candidatos () {
|
|
|
}
|
|
|
]
|
|
|
|
|
|
+ const [page, setPage] = React.useState(1);
|
|
|
+ const handleChange = (event, value) => {
|
|
|
+ console.log("INDEX => ", value)
|
|
|
+ setPage(value);
|
|
|
+ };
|
|
|
+
|
|
|
return (
|
|
|
<div className="body_historial">
|
|
|
<div className="header_historial">
|
|
|
@@ -27,26 +38,16 @@ export default function Candidatos () {
|
|
|
<div className="content_historial">
|
|
|
<p>Últimos candidatos que han ingresado al sistema:</p>
|
|
|
<div className="cabeceras">
|
|
|
- <div className="row">
|
|
|
- <div className="col20">
|
|
|
- <p>Contraseña</p>
|
|
|
- </div>
|
|
|
- <div className="col20">
|
|
|
- <p>Puesto</p>
|
|
|
- </div>
|
|
|
- <div className="col20">
|
|
|
- <p>No. Identificación</p>
|
|
|
- </div>
|
|
|
- <div className="col20">
|
|
|
- <p>Fecha de aplicación</p>
|
|
|
- </div>
|
|
|
- <div className="col20">
|
|
|
- <p>Pruebas Pendientes</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <Row>
|
|
|
+ <div className="col20"> <p>Contraseña</p> </div>
|
|
|
+ <div className="col20"> <p>Puesto</p> </div>
|
|
|
+ <div className="col20"> <p>No. Identificación</p> </div>
|
|
|
+ <div className="col20"> <p>Fecha de aplicación</p> </div>
|
|
|
+ <div className="col20"> <p>Pruebas Pendientes</p> </div>
|
|
|
+ </Row>
|
|
|
</div>
|
|
|
-
|
|
|
{
|
|
|
+ users.length ?
|
|
|
users.map( (user, index) => {
|
|
|
return(
|
|
|
<div key={index} className="data_candidato">
|
|
|
@@ -69,8 +70,16 @@ export default function Candidatos () {
|
|
|
</div>
|
|
|
</div>
|
|
|
)
|
|
|
- })
|
|
|
+ }) : undefined
|
|
|
}
|
|
|
+ <Row style={{ padding : 5 }}>
|
|
|
+ <Col>
|
|
|
+ <Stack spacing={2}>
|
|
|
+ <Typography>Page: {page}</Typography>
|
|
|
+ <Pagination count={10} page={page} onChange={handleChange} />
|
|
|
+ </Stack>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
</div>
|
|
|
</div>
|
|
|
)
|