diff --git a/PENDIENTE.md b/PENDIENTE.md index 69855d6..9791e6f 100644 --- a/PENDIENTE.md +++ b/PENDIENTE.md @@ -68,11 +68,17 @@ React 19: el `` de Status.js (`findDOMNode`), solo en `/statu - **Salto Bootstrap 4→5 (CSS/JS) pendiente:** react-bootstrap ya está en v2 y corre sobre el CSS Bootstrap 4 actual (`alexwine:bootstrap-4`) con un único shim `.form-label` en `forms.scss`. El salto a Bootstrap 5 npm está diferido - porque el carrusel del home (`bootstrap-carousel-swipe`, jQuery/BS4) y el - collapse del navbar dependen del JS jQuery de BS4 (`data-toggle`, `data-slide`). - Al hacerlo: importar `bootstrap@5` SCSS+JS, reescribir el carrusel (BS5 trae - swipe nativo → quitar el plugin), `data-toggle`→`data-bs-toggle`, - `ml-auto`→`ms-auto`, revisar `new-age.scss`/`custom.scss`/`bootstrap-overrides.scss`. + porque el carrusel del home (`bootstrap-carousel-swipe`, jQuery/BS4) depende del + JS jQuery de BS4 (`data-slide`). + - ✅ **Collapse del navbar migrado a React** (`Navigation.js` + `NavItem.js`): + el `data-toggle="collapse"` jQuery se sustituyó por estado React (`useState` + que alterna `.show`); funciona ya sobre el CSS BS4 y no depende del JS jQuery. + *Verificar en staging el menú móvil ( that toggles the collapsed menu on click. +// navbar needs is just an
  • . The mobile menu is now collapsed from React +// state in Navigation (the parent
      ), so the old jQuery +// `data-toggle="collapse"` / `data-target` hooks were dropped here. const propTypes = { active: PropTypes.bool, disabled: PropTypes.bool, @@ -57,8 +59,6 @@ class NavItem extends React.Component { return (
    • diff --git a/imports/ui/components/Navigation/Navigation.js b/imports/ui/components/Navigation/Navigation.js index 15b1c11..599b92c 100644 --- a/imports/ui/components/Navigation/Navigation.js +++ b/imports/ui/components/Navigation/Navigation.js @@ -15,44 +15,51 @@ import './Navigation.scss'; // removed class: fixed-top // md instead of lg: no menu in medium -const Navigation = ({ name = '', ...props }) => ( - -); + + ); +}; Navigation.propTypes = { t: PropTypes.func.isRequired,