|
@@ -1,19 +1,18 @@
|
|
|
import React, { useState, useEffect } from 'react';
|
|
import React, { useState, useEffect } from 'react';
|
|
|
import { Row, Col } from 'react-bootstrap'
|
|
import { Row, Col } from 'react-bootstrap'
|
|
|
|
|
+
|
|
|
import toast, { Toaster } from 'react-hot-toast';
|
|
import toast, { Toaster } from 'react-hot-toast';
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
|
- ToggleButton,
|
|
|
|
|
- ToggleButtonGroup,
|
|
|
|
|
- Box,
|
|
|
|
|
- Paper,
|
|
|
|
|
- Pagination,
|
|
|
|
|
|
|
+ ToggleButton, ToggleButtonGroup, Box,
|
|
|
|
|
+ Paper, Pagination,
|
|
|
} from '@mui/material';
|
|
} from '@mui/material';
|
|
|
|
|
|
|
|
import { ViewList as ViewListIcon, ViewModule as ViewModuleIcon, } from '@mui/icons-material';
|
|
import { ViewList as ViewListIcon, ViewModule as ViewModuleIcon, } from '@mui/icons-material';
|
|
|
|
|
|
|
|
import { default as useAuth } from '../Auth/useAuth';
|
|
import { default as useAuth } from '../Auth/useAuth';
|
|
|
import { Service } from '../Utils/HTTP';
|
|
import { Service } from '../Utils/HTTP';
|
|
|
|
|
+import { Divide } from '../Utils/Paginate';
|
|
|
|
|
|
|
|
import Express from '../Components/Modal/AgregarExpress';
|
|
import Express from '../Components/Modal/AgregarExpress';
|
|
|
import Manual from '../Components/Modal/AgregarManual';
|
|
import Manual from '../Components/Modal/AgregarManual';
|
|
@@ -26,15 +25,6 @@ import { ListMode } from '../Components/Puestos/ListMode'
|
|
|
import { GridMode } from '../Components/Puestos/GridMode'
|
|
import { GridMode } from '../Components/Puestos/GridMode'
|
|
|
import { Add as AddIcon, } from '@mui/icons-material/'
|
|
import { Add as AddIcon, } from '@mui/icons-material/'
|
|
|
|
|
|
|
|
-function Divide(arregloOriginal){
|
|
|
|
|
- const LONGITUD_PEDAZOS = 9;
|
|
|
|
|
- let arregloDeArreglos = [];
|
|
|
|
|
- for (let i = 0; i < arregloOriginal.length; i += LONGITUD_PEDAZOS) {
|
|
|
|
|
- let pedazo = arregloOriginal.slice(i, i + LONGITUD_PEDAZOS);
|
|
|
|
|
- arregloDeArreglos.push(pedazo);
|
|
|
|
|
- }
|
|
|
|
|
- return arregloDeArreglos
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
export function Puestos() {
|
|
export function Puestos() {
|
|
|
|
|
|
|
@@ -130,8 +120,8 @@ export function Puestos() {
|
|
|
return (
|
|
return (
|
|
|
<div className="content-section">
|
|
<div className="content-section">
|
|
|
<div className="main">
|
|
<div className="main">
|
|
|
- <Box sx={{ width: '100%' }}>
|
|
|
|
|
- <Paper sx={{ width: '100%', mb: 2, padding : 2, height: '100%', minHeight:'95vh' }}>
|
|
|
|
|
|
|
+ <Box sx={{}}>
|
|
|
|
|
+ <Paper sx={{ mb: 2, padding : 2, height: '100%', minHeight:'95vh' }}>
|
|
|
|
|
|
|
|
<Row style={{paddingBottom : 15}}>
|
|
<Row style={{paddingBottom : 15}}>
|
|
|
<Col md="2" sm="2" xs="2">
|
|
<Col md="2" sm="2" xs="2">
|