Browse Source

icons and other data

amenpunk 3 years ago
parent
commit
34542b3273
2 changed files with 38 additions and 14 deletions
  1. 17 6
      src/Components/Password/config.js
  2. 21 8
      src/Pages/Contras.jsx

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

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
     return {
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
     );
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
 import * as React from 'react';
1
 import * as React from 'react';
2
 
2
 
3
+import {
4
+    EditSharp,
5
+    MailSharp,
6
+} from '@mui/icons-material'
7
+
3
 import { 
8
 import { 
4
     // descendingComparator,
9
     // descendingComparator,
5
     rows,
10
     rows,
11
+    action_icon,
6
     Comparar,
12
     Comparar,
7
     Cuerpo,
13
     Cuerpo,
8
     TableHeader as EnhancedTableHead,
14
     TableHeader as EnhancedTableHead,
19
 
25
 
20
 import { Row, Col, Container } from 'react-bootstrap';
26
 import { Row, Col, Container } from 'react-bootstrap';
21
 
27
 
28
+
22
 export function Contras() {
29
 export function Contras() {
23
 
30
 
24
     const [order, setOrder] = React.useState('asc');
31
     const [order, setOrder] = React.useState('asc');
26
     const [selected, setSelected] = React.useState([]);
33
     const [selected, setSelected] = React.useState([]);
27
     const [page, setPage] = React.useState(0);
34
     const [page, setPage] = React.useState(0);
28
     const [dense, setDense] = React.useState(false);
35
     const [dense, setDense] = React.useState(false);
29
-    const [rowsPerPage, setRowsPerPage] = React.useState(15);
36
+    const [rowsPerPage, setRowsPerPage] = React.useState(10);
30
 
37
 
31
     const handleRequestSort = (_event, property) => {
38
     const handleRequestSort = (_event, property) => {
32
         const isAsc = orderBy === property && order === 'asc';
39
         const isAsc = orderBy === property && order === 'asc';
35
     };
42
     };
36
 
43
 
37
     const handleSelectAllClick = (event) => {
44
     const handleSelectAllClick = (event) => {
45
+
38
         if (event.target.checked) {
46
         if (event.target.checked) {
39
             const newSelecteds = rows.map( (n) => n.name);
47
             const newSelecteds = rows.map( (n) => n.name);
40
             setSelected(newSelecteds);
48
             setSelected(newSelecteds);
135
                                                                 scope="row"
143
                                                                 scope="row"
136
                                                                 padding="none"
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
                                                             </TableCell>
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
                                                         </TableRow>
159
                                                         </TableRow>
147
                                                     );
160
                                                     );
148
                                                 })}
161
                                                 })}