|
@@ -18,6 +18,7 @@ import Mostrar from '../Components/Modal/MostrarPlaza';
|
18
|
18
|
|
19
|
19
|
import { ListMode } from '../Components/Puestos/ListMode'
|
20
|
20
|
import { GridMode } from '../Components/Puestos/GridMode'
|
|
21
|
+import { Add as AddIcon, } from '@mui/icons-material/'
|
21
|
22
|
|
22
|
23
|
|
23
|
24
|
const Success = () => toast.success('Plaza Agregada!!')
|
|
@@ -32,22 +33,22 @@ export function Puestos() {
|
32
|
33
|
let rest = new Service("/plaza/getall")
|
33
|
34
|
|
34
|
35
|
rest
|
35
|
|
- .get(token)
|
36
|
|
- .then(({data}) => {
|
37
|
|
- let entries = data.map( e => {
|
38
|
|
- return {
|
39
|
|
- nombre : e.nombrepuesto,
|
40
|
|
- description : e.notas,
|
41
|
|
- id : e.id,
|
42
|
|
- created: e.create_day,
|
43
|
|
- data: e
|
44
|
|
- };
|
|
36
|
+ .get(token)
|
|
37
|
+ .then(({data}) => {
|
|
38
|
+ let entries = data.map( e => {
|
|
39
|
+ return {
|
|
40
|
+ nombre : e.nombrepuesto,
|
|
41
|
+ description : e.notas,
|
|
42
|
+ id : e.id,
|
|
43
|
+ created: e.create_day,
|
|
44
|
+ data: e
|
|
45
|
+ };
|
|
46
|
+ })
|
|
47
|
+ setData(entries)
|
|
48
|
+ })
|
|
49
|
+ .catch((error) => {
|
|
50
|
+ console.log('error fetching data ', error );
|
45
|
51
|
})
|
46
|
|
- setData(entries)
|
47
|
|
- })
|
48
|
|
- .catch((error) => {
|
49
|
|
- console.log('error fetching data ', error );
|
50
|
|
- })
|
51
|
52
|
|
52
|
53
|
},[token])
|
53
|
54
|
|
|
@@ -86,9 +87,9 @@ export function Puestos() {
|
86
|
87
|
<div className="content-section">
|
87
|
88
|
<div className="main">
|
88
|
89
|
<Box sx={{ width: '100%' }}>
|
89
|
|
- <Paper sx={{ width: '100%', mb: 2, padding : 2 }}>
|
|
90
|
+ <Paper sx={{ width: '100%', mb: 2, padding : 2, height: '95vh' }}>
|
90
|
91
|
|
91
|
|
- <Row>
|
|
92
|
+ <Row style={{paddingBottom : 15}}>
|
92
|
93
|
<Col md="2" sm="2" xs="2">
|
93
|
94
|
<div className="breadcrumb-header">
|
94
|
95
|
<Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
|
|
@@ -100,10 +101,14 @@ export function Puestos() {
|
100
|
101
|
</Col>
|
101
|
102
|
<Col md="10" sm='10' xs="10">
|
102
|
103
|
<div className="add_producto">
|
103
|
|
- <div onClick={() => setManual(true) } className="btn_add_producto"> <span >Agregar manual</span> </div>
|
|
104
|
+ <div onClick={() => setManual(true) } className="btn_add_producto">
|
|
105
|
+ <span className="btn_plaza_common" >Agregar manual <AddIcon/></span>
|
|
106
|
+ </div>
|
104
|
107
|
</div>
|
105
|
108
|
<div onClick={() => setExpress(true) } className="add_producto">
|
106
|
|
- <div className="btn_add_producto"> <span >Agregar express</span> </div>
|
|
109
|
+ <div className="btn_add_producto">
|
|
110
|
+ <span className="btn_plaza_common">Agregar express <AddIcon/></span>
|
|
111
|
+ </div>
|
107
|
112
|
</div>
|
108
|
113
|
</Col>
|
109
|
114
|
</Row>
|