Ver código fonte

icons and other data

amenpunk 3 anos atrás
pai
commit
34542b3273
2 arquivos alterados com 38 adições e 14 exclusões
  1. 17 6
      src/Components/Password/config.js
  2. 21 8
      src/Pages/Contras.jsx

+ 17 - 6
src/Components/Password/config.js

@@ -79,13 +79,17 @@ export const TableEncabezadoOperation = (props) => {
79 79
 
80 80
 
81 81
 
82
-export function createData(name, calories, fat, carbs, protein) {
82
+export function createData( pass, nivel, puesto, cui, uso, picture, cv, replic, ope) {
83 83
     return {
84
-        name,
85
-        calories,
86
-        fat,
87
-        carbs,
88
-        protein,
84
+        pass,
85
+        nivel,
86
+        puesto,
87
+        cui,
88
+        uso,
89
+        picture,
90
+        cv,
91
+        replic,
92
+        ope,
89 93
     };
90 94
 }
91 95
 
@@ -166,6 +170,13 @@ export function TableHeader(props){
166 170
     );
167 171
 }
168 172
 
173
+export const action_icon =  {
174
+    color: '#ec5e69',
175
+    fontSize: "20",
176
+    padding:1
177
+    // background: '#ec5e69',
178
+    // color: "#fff",
179
+}
169 180
 
170 181
 
171 182
 

+ 21 - 8
src/Pages/Contras.jsx

@@ -1,8 +1,14 @@
1 1
 import * as React from 'react';
2 2
 
3
+import {
4
+    EditSharp,
5
+    MailSharp,
6
+} from '@mui/icons-material'
7
+
3 8
 import { 
4 9
     // descendingComparator,
5 10
     rows,
11
+    action_icon,
6 12
     Comparar,
7 13
     Cuerpo,
8 14
     TableHeader as EnhancedTableHead,
@@ -19,6 +25,7 @@ import {
19 25
 
20 26
 import { Row, Col, Container } from 'react-bootstrap';
21 27
 
28
+
22 29
 export function Contras() {
23 30
 
24 31
     const [order, setOrder] = React.useState('asc');
@@ -26,7 +33,7 @@ export function Contras() {
26 33
     const [selected, setSelected] = React.useState([]);
27 34
     const [page, setPage] = React.useState(0);
28 35
     const [dense, setDense] = React.useState(false);
29
-    const [rowsPerPage, setRowsPerPage] = React.useState(15);
36
+    const [rowsPerPage, setRowsPerPage] = React.useState(10);
30 37
 
31 38
     const handleRequestSort = (_event, property) => {
32 39
         const isAsc = orderBy === property && order === 'asc';
@@ -35,6 +42,7 @@ export function Contras() {
35 42
     };
36 43
 
37 44
     const handleSelectAllClick = (event) => {
45
+
38 46
         if (event.target.checked) {
39 47
             const newSelecteds = rows.map( (n) => n.name);
40 48
             setSelected(newSelecteds);
@@ -135,14 +143,19 @@ export function Contras() {
135 143
                                                                 scope="row"
136 144
                                                                 padding="none"
137 145
                                                             >
138
-                                                                {row.name}
146
+                                                                {row.pass}
147
+                                                            </TableCell>
148
+                                                            <TableCell align="right">{row.nivel}</TableCell>
149
+                                                            <TableCell align="right">{row.puesto}</TableCell>
150
+                                                            <TableCell align="right">{row.cui}</TableCell>
151
+                                                            <TableCell align="right">{row.uso}</TableCell>
152
+                                                            <TableCell align="right">{row.picture}</TableCell>
153
+                                                            <TableCell align="right">{row.cv}</TableCell>
154
+                                                            <TableCell align="right">{row.replic}</TableCell>
155
+                                                            <TableCell align="right">
156
+                                                                <EditSharp  style={action_icon} />
157
+                                                                <MailSharp style={action_icon}/>
139 158
                                                             </TableCell>
140
-                                                            <TableCell align="right">{row.calories}</TableCell>
141
-                                                            <TableCell align="right">{row.fat}</TableCell>
142
-                                                            <TableCell align="right">{row.carbs}</TableCell>
143
-                                                            <TableCell align="right">{row.protein}</TableCell>
144
-                                                            <TableCell align="right">{row.protein}</TableCell>
145
-                                                            <TableCell align="right">{row.protein}</TableCell>
146 159
                                                         </TableRow>
147 160
                                                     );
148 161
                                                 })}