|
|
@@ -1,84 +1,24 @@
|
|
1
|
1
|
import * as React from 'react';
|
|
2
|
|
-// import { useTheme } from '@mui/material/styles';
|
|
|
2
|
+
|
|
3
|
3
|
import {
|
|
4
|
|
- rows,
|
|
5
|
4
|
// descendingComparator,
|
|
|
5
|
+ rows,
|
|
6
|
6
|
Comparar,
|
|
7
|
7
|
Cuerpo,
|
|
8
|
|
- TableHeader as EnhancedTableHead
|
|
|
8
|
+ TableHeader as EnhancedTableHead,
|
|
|
9
|
+ TableEncabezadoOperation
|
|
9
|
10
|
} from '../Components/Password/config.js';
|
|
10
|
11
|
|
|
11
|
12
|
import {
|
|
12
|
13
|
Table, TableBody, TableCell, TableContainer,
|
|
13
|
14
|
TableRow, TablePagination,
|
|
14
|
|
- IconButton, Paper, Box,
|
|
15
|
|
- Switch, FormControlLabel,Tooltip,
|
|
16
|
|
- Checkbox, Typography, Toolbar,
|
|
|
15
|
+ Paper, Box, Switch, FormControlLabel,
|
|
|
16
|
+ Checkbox,
|
|
17
|
17
|
// TableSortLabel,TableHead,Card
|
|
18
|
18
|
} from '@mui/material';
|
|
19
|
19
|
|
|
20
|
|
-import { alpha } from '@mui/material/styles';
|
|
21
|
|
-
|
|
22
|
20
|
import { Row, Col, Container } from 'react-bootstrap';
|
|
23
|
21
|
|
|
24
|
|
-import {
|
|
25
|
|
- Delete as DeleteIcon,
|
|
26
|
|
- FilterList as FilterListIcon,
|
|
27
|
|
- // LastPage as LastPageIcon, FirstPage as FirstPageIcon, KeyboardArrowRight, KeyboardArrowLeft,
|
|
28
|
|
-} from '@mui/icons-material/'
|
|
29
|
|
-
|
|
30
|
|
-const TableEncabezadoOperation = (props) => {
|
|
31
|
|
-
|
|
32
|
|
- const { numSelected } = props;
|
|
33
|
|
- return (
|
|
34
|
|
- <Toolbar
|
|
35
|
|
- sx={{
|
|
36
|
|
- pl: { sm: 2 },
|
|
37
|
|
- pr: { xs: 1, sm: 1 },
|
|
38
|
|
- ...(numSelected > 0 && {
|
|
39
|
|
- bgcolor: (theme) =>
|
|
40
|
|
- alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity),
|
|
41
|
|
- }),
|
|
42
|
|
- }}
|
|
43
|
|
- >
|
|
44
|
|
- {numSelected > 0 ? (
|
|
45
|
|
- <Typography
|
|
46
|
|
- sx={{ flex: '1 1 100%' }}
|
|
47
|
|
- color="inherit"
|
|
48
|
|
- variant="subtitle1"
|
|
49
|
|
- component="div"
|
|
50
|
|
- >
|
|
51
|
|
- {numSelected} selected
|
|
52
|
|
- </Typography>
|
|
53
|
|
- ) : (
|
|
54
|
|
- <Typography
|
|
55
|
|
- sx={{ flex: '1 1 100%' }}
|
|
56
|
|
- variant="h6"
|
|
57
|
|
- id="tableTitle"
|
|
58
|
|
- component="div"
|
|
59
|
|
- >
|
|
60
|
|
- Contraseñas
|
|
61
|
|
- </Typography>
|
|
62
|
|
- )}
|
|
63
|
|
-
|
|
64
|
|
- {numSelected > 0 ? (
|
|
65
|
|
- <Tooltip title="Delete">
|
|
66
|
|
- <IconButton>
|
|
67
|
|
- <DeleteIcon />
|
|
68
|
|
- </IconButton>
|
|
69
|
|
- </Tooltip>
|
|
70
|
|
- ) : (
|
|
71
|
|
- <Tooltip title="Filter list">
|
|
72
|
|
- <IconButton>
|
|
73
|
|
- <FilterListIcon />
|
|
74
|
|
- </IconButton>
|
|
75
|
|
- </Tooltip>
|
|
76
|
|
- )}
|
|
77
|
|
- </Toolbar>
|
|
78
|
|
- );
|
|
79
|
|
-
|
|
80
|
|
-}
|
|
81
|
|
-
|
|
82
|
22
|
export function Contras() {
|
|
83
|
23
|
|
|
84
|
24
|
const [order, setOrder] = React.useState('asc');
|
|
|
@@ -88,7 +28,7 @@ export function Contras() {
|
|
88
|
28
|
const [dense, setDense] = React.useState(false);
|
|
89
|
29
|
const [rowsPerPage, setRowsPerPage] = React.useState(15);
|
|
90
|
30
|
|
|
91
|
|
- const handleRequestSort = (event, property) => {
|
|
|
31
|
+ const handleRequestSort = (_event, property) => {
|
|
92
|
32
|
const isAsc = orderBy === property && order === 'asc';
|
|
93
|
33
|
setOrder(isAsc ? 'desc' : 'asc');
|
|
94
|
34
|
setOrderBy(property);
|
|
|
@@ -103,7 +43,7 @@ export function Contras() {
|
|
103
|
43
|
setSelected([]);
|
|
104
|
44
|
};
|
|
105
|
45
|
|
|
106
|
|
- const handleClick = (event, name) => {
|
|
|
46
|
+ const handleClick = (__event, name) => {
|
|
107
|
47
|
const selectedIndex = selected.indexOf(name);
|
|
108
|
48
|
let newSelected = [];
|
|
109
|
49
|
|
|
|
@@ -123,7 +63,7 @@ export function Contras() {
|
|
123
|
63
|
setSelected(newSelected);
|
|
124
|
64
|
};
|
|
125
|
65
|
|
|
126
|
|
- const handleChangePage = (event, newPage) => {
|
|
|
66
|
+ const handleChangePage = (_event, newPage) => {
|
|
127
|
67
|
setPage(newPage);
|
|
128
|
68
|
};
|
|
129
|
69
|
|
|
|
@@ -170,7 +110,6 @@ export function Contras() {
|
|
170
|
110
|
const isItemSelected = isSelected(row.name);
|
|
171
|
111
|
const labelId = `enhanced-table-checkbox-${index}`;
|
|
172
|
112
|
|
|
173
|
|
- console.log('INDEX >> ',row)
|
|
174
|
113
|
return (
|
|
175
|
114
|
<TableRow
|
|
176
|
115
|
hover
|