From eed7af0274aa26fbd6ced4d6db7f0e7c75246e11 Mon Sep 17 00:00:00 2001 From: Mariela Date: Mon, 1 Aug 2022 01:51:54 -0600 Subject: [PATCH] fix iconos y textos de las columnas --- .../web-react/src/components/AreasComunes.js | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/web-ui/web-react/src/components/AreasComunes.js b/web-ui/web-react/src/components/AreasComunes.js index 52d2c726..693467df 100644 --- a/web-ui/web-react/src/components/AreasComunes.js +++ b/web-ui/web-react/src/components/AreasComunes.js @@ -9,11 +9,10 @@ import { Dialog } from 'primereact/dialog'; import { Toolbar } from 'primereact/toolbar'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faHome, faUserAlt } from '@fortawesome/free-solid-svg-icons'; -import { faPhoneAlt } from '@fortawesome/free-solid-svg-icons'; +import { faCircleQuestion } from '@fortawesome/free-solid-svg-icons'; import { faAt } from '@fortawesome/free-solid-svg-icons'; import { faIdCardAlt } from '@fortawesome/free-solid-svg-icons'; -import { faEllipsis } from '@fortawesome/free-solid-svg-icons'; -import { faHomeAlt } from '@fortawesome/free-solid-svg-icons'; +import { faClipboardCheck } from '@fortawesome/free-solid-svg-icons'; import classNames from 'classnames'; import { useCookies } from "react-cookie"; @@ -53,9 +52,9 @@ const AreasComunes = () => { if (data) { data.map(item => { if (item.bookable == '1') { - item.bookable_text = 'Obligatoria'; + item.bookable_text = 'Necesaria'; } else { - item.bookable_text = 'Libre'; + item.bookable_text = 'No es necesarioa'; } if (item.status == '1') { @@ -261,7 +260,7 @@ const AreasComunes = () => { const headerBookable = ( <>

{' '} - {' '} + {' '} Reservación

@@ -270,7 +269,7 @@ const AreasComunes = () => { const headerStatus = ( <>

{' '} - {' '} + {' '} Estado

@@ -278,10 +277,17 @@ const AreasComunes = () => { const bookableBodyTemplate = (rowData) => { + let class_color = ''; + if(rowData.bookable == '1') { + class_color = '0'; + } else { + class_color = '1'; + + } return ( <> {rowData.bookable_text} @@ -317,7 +323,7 @@ const AreasComunes = () => { - +