|
|
@@ -8,20 +8,20 @@ import Deletei from '@mui/icons-material/Delete';
|
|
|
export function ListMode(props) {
|
|
|
|
|
|
const opciones = { weekday: 'long', year: 'numeric', month: 'short', day: 'numeric' };
|
|
|
- let { setEdit, setDelete, setShow, setPuesto, data, index, showing } = props;
|
|
|
+ let { data, index, showing } = props;
|
|
|
|
|
|
const isMovil = Size('(min-width:770px)');
|
|
|
|
|
|
return(
|
|
|
<Col md="12">
|
|
|
- <div className="body-table">
|
|
|
- <Table responsive borderless id="tablaproductos">
|
|
|
+ <div className={!isMovil ? "body-table-responsive" : "body-table"}>
|
|
|
+ <Table responsive borderless id="tablaproductos" style={{ color : 'white' }}>
|
|
|
<thead>
|
|
|
<tr >
|
|
|
- <th className="text-center">Nombre de la plaza</th>
|
|
|
+ <th className="text-center">Nombre</th>
|
|
|
<th className="text-center">Descripción</th>
|
|
|
<th className="text-center">Creacion</th>
|
|
|
- <th className="text-center">Acciones</th>
|
|
|
+ <th className="text-center">Acción</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@@ -31,9 +31,9 @@ export function ListMode(props) {
|
|
|
return (
|
|
|
<Zoom key={plaza.id} in={true}>
|
|
|
<tr >
|
|
|
- <td className="text-center">{ plaza.nombre }</td>
|
|
|
- <td className="text-center">{ plaza.description }</td>
|
|
|
- <td className="text-center">{ new Date( plaza.created ).toLocaleDateString('es-GT',opciones) }</td>
|
|
|
+ <td className="text-center">{ plaza.nombrepuesto }</td>
|
|
|
+ <td className="text-center">{ plaza.notas }</td>
|
|
|
+ <td className="text-center">{ new Date( plaza.createday ).toLocaleDateString('es-GT',opciones) }</td>
|
|
|
<TableCell
|
|
|
sx={{
|
|
|
"display":'flex',
|
|
|
@@ -44,24 +44,21 @@ export function ListMode(props) {
|
|
|
className="actions_butons_plaza">
|
|
|
<Button
|
|
|
onClick={() => {
|
|
|
- setPuesto(plaza)
|
|
|
- setShow(true)
|
|
|
+ console.log("VER")
|
|
|
}}
|
|
|
className="ver_producto">
|
|
|
{!isMovil ? <ShowI/> : "Ver"}
|
|
|
</Button>
|
|
|
<Button
|
|
|
onClick={() => {
|
|
|
- setPuesto(plaza)
|
|
|
- setEdit(true)
|
|
|
+ console.log("EDITAR")
|
|
|
}}
|
|
|
className="editar_producto">
|
|
|
{!isMovil ? <EditI/> : "Editar"}
|
|
|
</Button>
|
|
|
<Button
|
|
|
onClick={() => {
|
|
|
- setPuesto(plaza)
|
|
|
- setDelete(true)
|
|
|
+ console.log("ELIMINAR")
|
|
|
}}
|
|
|
className="eliminar_producto">
|
|
|
{!isMovil ? <Deletei/> : "Eliminar"}
|