Jelajahi Sumber

icons and other data

amenpunk 4 tahun lalu
induk
melakukan
34542b3273
2 mengubah file dengan 38 tambahan dan 14 penghapusan
  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) => {
 
 
 
-export function createData(name, calories, fat, carbs, protein) {
+export function createData( pass, nivel, puesto, cui, uso, picture, cv, replic, ope) {
     return {
-        name,
-        calories,
-        fat,
-        carbs,
-        protein,
+        pass,
+        nivel,
+        puesto,
+        cui,
+        uso,
+        picture,
+        cv,
+        replic,
+        ope,
     };
 }
 
@@ -166,6 +170,13 @@ export function TableHeader(props){
     );
 }
 
+export const action_icon =  {
+    color: '#ec5e69',
+    fontSize: "20",
+    padding:1
+    // background: '#ec5e69',
+    // color: "#fff",
+}
 
 
 

+ 21 - 8
src/Pages/Contras.jsx

@@ -1,8 +1,14 @@
 import * as React from 'react';
 
+import {
+    EditSharp,
+    MailSharp,
+} from '@mui/icons-material'
+
 import { 
     // descendingComparator,
     rows,
+    action_icon,
     Comparar,
     Cuerpo,
     TableHeader as EnhancedTableHead,
@@ -19,6 +25,7 @@ import {
 
 import { Row, Col, Container } from 'react-bootstrap';
 
+
 export function Contras() {
 
     const [order, setOrder] = React.useState('asc');
@@ -26,7 +33,7 @@ export function Contras() {
     const [selected, setSelected] = React.useState([]);
     const [page, setPage] = React.useState(0);
     const [dense, setDense] = React.useState(false);
-    const [rowsPerPage, setRowsPerPage] = React.useState(15);
+    const [rowsPerPage, setRowsPerPage] = React.useState(10);
 
     const handleRequestSort = (_event, property) => {
         const isAsc = orderBy === property && order === 'asc';
@@ -35,6 +42,7 @@ export function Contras() {
     };
 
     const handleSelectAllClick = (event) => {
+
         if (event.target.checked) {
             const newSelecteds = rows.map( (n) => n.name);
             setSelected(newSelecteds);
@@ -135,14 +143,19 @@ export function Contras() {
                                                                 scope="row"
                                                                 padding="none"
                                                             >
-                                                                {row.name}
+                                                                {row.pass}
+                                                            </TableCell>
+                                                            <TableCell align="right">{row.nivel}</TableCell>
+                                                            <TableCell align="right">{row.puesto}</TableCell>
+                                                            <TableCell align="right">{row.cui}</TableCell>
+                                                            <TableCell align="right">{row.uso}</TableCell>
+                                                            <TableCell align="right">{row.picture}</TableCell>
+                                                            <TableCell align="right">{row.cv}</TableCell>
+                                                            <TableCell align="right">{row.replic}</TableCell>
+                                                            <TableCell align="right">
+                                                                <EditSharp  style={action_icon} />
+                                                                <MailSharp style={action_icon}/>
                                                             </TableCell>
-                                                            <TableCell align="right">{row.calories}</TableCell>
-                                                            <TableCell align="right">{row.fat}</TableCell>
-                                                            <TableCell align="right">{row.carbs}</TableCell>
-                                                            <TableCell align="right">{row.protein}</TableCell>
-                                                            <TableCell align="right">{row.protein}</TableCell>
-                                                            <TableCell align="right">{row.protein}</TableCell>
                                                         </TableRow>
                                                     );
                                                 })}