amenpunk лет назад: 3
Родитель
Сommit
a8c9ac6277

+ 9 - 0
psicoadmin/src/Components/Actividades.js

@@ -1,5 +1,6 @@
1 1
 import * as React from 'react'
2 2
 import FlightTakeoffIcon from '@mui/icons-material/FlightTakeoff';
3
+import TimePicker from '@mui/lab/TimePicker';
3 4
 import { Col, Row } from 'react-bootstrap';
4 5
 
5 6
 function LastActivitys() {
@@ -21,6 +22,12 @@ function LastActivitys() {
21 22
         date : "21/12/18 9:25:52",
22 23
     } ]
23 24
 
25
+    const [value, setValue] = React.useState(new Date());
26
+    const handleChange = (newValue) => {
27
+        setValue(newValue);
28
+    };
29
+
30
+
24 31
     return(
25 32
         <React.Fragment>
26 33
             {
@@ -90,6 +97,8 @@ export default function Actividades() {
90 97
                             </Col>
91 98
                             <Col md="4">
92 99
                                 <label>Fecha Inicio</label>
100
+                                  <TimePicker label="Time" value={value} onChange={handleChange} renderInput={(params) => <TextField {...params} />} />
101
+
93 102
                                 <input id="custom-input-date" className="calendar" type="text" name="upload-release" placeholder="dd/mm/yyyy"/>
94 103
                             </Col>
95 104
                             <Col md="4">

+ 29 - 20
psicoadmin/src/Components/Candidatos.js

@@ -1,5 +1,10 @@
1
+import React, { useState } from 'react';
2
+import { Row, Col } from 'react-bootstrap';
3
+
1 4
 import UpdateIcon from '@mui/icons-material/Update';
2
-import { Table } from 'react-bootstrap'
5
+import Typography from '@mui/material/Typography';
6
+import Pagination from '@mui/material/Pagination';
7
+import Stack from '@mui/material/Stack';
3 8
 
4 9
 export default function Candidatos () {
5 10
 
@@ -18,6 +23,12 @@ export default function Candidatos () {
18 23
         }
19 24
     ]
20 25
 
26
+    const [page, setPage] = React.useState(1);
27
+    const handleChange = (event, value) => {
28
+        console.log("INDEX => ", value)
29
+        setPage(value);
30
+    };
31
+
21 32
     return (
22 33
         <div className="body_historial">
23 34
             <div className="header_historial">
@@ -27,26 +38,16 @@ export default function Candidatos () {
27 38
             <div className="content_historial">
28 39
                 <p>Últimos candidatos que han ingresado al sistema:</p>
29 40
                 <div className="cabeceras">
30
-                    <div className="row">
31
-                        <div className="col20">
32
-                            <p>Contraseña</p>
33
-                        </div>
34
-                        <div className="col20">
35
-                            <p>Puesto</p>
36
-                        </div>
37
-                        <div className="col20">
38
-                            <p>No. Identificación</p>
39
-                        </div>
40
-                        <div className="col20">
41
-                            <p>Fecha de aplicación</p>
42
-                        </div>
43
-                        <div className="col20">
44
-                            <p>Pruebas Pendientes</p>
45
-                        </div>
46
-                    </div>
41
+                    <Row>
42
+                        <div className="col20"> <p>Contraseña</p> </div>
43
+                        <div className="col20"> <p>Puesto</p> </div>
44
+                        <div className="col20"> <p>No. Identificación</p> </div>
45
+                        <div className="col20"> <p>Fecha de aplicación</p> </div>
46
+                        <div className="col20"> <p>Pruebas Pendientes</p> </div>
47
+                    </Row>
47 48
                 </div>
48
-
49 49
                 {
50
+                    users.length ? 
50 51
                     users.map( (user, index) => {
51 52
                         return(
52 53
                             <div key={index} className="data_candidato">
@@ -69,8 +70,16 @@ export default function Candidatos () {
69 70
                                 </div>
70 71
                             </div>
71 72
                         )
72
-                    })
73
+                    }) : undefined
73 74
                 }
75
+                <Row style={{ padding : 5 }}>
76
+                    <Col>
77
+                        <Stack spacing={2}>
78
+                            <Typography>Page: {page}</Typography>
79
+                            <Pagination count={10} page={page} onChange={handleChange} />
80
+                        </Stack>
81
+                    </Col>
82
+                </Row>
74 83
             </div>
75 84
         </div>
76 85
     )

+ 2 - 4
psicoadmin/src/Components/Dashboard.js

@@ -30,7 +30,7 @@ import ProfilePicture from '../Images/man.png';
30 30
 
31 31
 import useAuth from '../Auth/useAuth';
32 32
 import { Outlet, useNavigate} from "react-router-dom";
33
-import MenuMovil from "./MenuMovil";
33
+import Footer from "../Components/Footer";
34 34
 
35 35
 
36 36
 const drawerWidth = 240;
@@ -270,13 +270,11 @@ function DashboardContent() {
270 270
                     </List>
271 271
                 </Drawer>
272 272
                 <Box component="main" sx={{ backgroundColor: (theme) => theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[900], flexGrow: 1, height: '100vh', overflow: 'auto', }} >
273
-
274 273
                     <Toolbar />
275
-
276 274
                     <Container maxWidth="lg" sx={{ mt: 2 , mb: 2 }}>
277 275
                         <Outlet/>
276
+                        <Footer/>
278 277
                     </Container>
279
-
280 278
                 </Box>
281 279
             </Box>
282 280
         </ThemeProvider>

+ 1 - 1
psicoadmin/src/Components/Footer.js

@@ -2,7 +2,7 @@
2 2
 import Typography from '@mui/material/Typography';
3 3
 import Link from '@mui/material/Link';
4 4
 
5
-export function Footer(props) {
5
+export default function Footer(props) {
6 6
     return (
7 7
         <Typography variant="body2" color="text.secondary" align="center" {...props}>
8 8
             {'Copyright © '}