react-ecosistema-unp 1.15.1 → 1.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -599,7 +599,7 @@ function Yt() {
599
599
  }
600
600
  var Fn = Yt();
601
601
  const Ti = () => {
602
- const [c, o] = O(!1), [f, s] = O([]), [d, E] = O([]), [U, F] = O([]), [se, ne] = O(1), [Xe, Ie] = O(1), [Ve, ce] = O(1), [ie, qe] = O(!0), [Ke, we] = O(!0), [Ze, le] = O(!0), [y, K] = O(!1), [Ee, Me] = O(!1), [xe, fe] = O(!1), [ve, A] = O(0), [j, Ae] = O(null), [z, oe] = O(null), [L, Pe] = O("all"), Ne = It(null), ke = It(null), Ue = () => {
602
+ const [c, o] = O(!1), [f, s] = O([]), [d, E] = O([]), [U, F] = O([]), [se, ne] = O(1), [Xe, Ie] = O(1), [Ve, ce] = O(1), [ie, qe] = O(!0), [Ke, we] = O(!0), [Ze, le] = O(!0), [y, K] = O(!1), [Ee, Me] = O(!1), [xe, fe] = O(!1), [ve, A] = O(0), [j, Ae] = O(null), [z, oe] = O(null), [L, Pe] = O("unread"), Ne = It(null), ke = It(null), Ue = () => {
603
603
  var m;
604
604
  const t = localStorage.getItem("auth_state"), i = t ? JSON.parse(t) : null;
605
605
  return ((m = i == null ? void 0 : i.user) == null ? void 0 : m.id_busuario) || "";
@@ -637,7 +637,7 @@ const Ti = () => {
637
637
  }
638
638
  }, R = async () => {
639
639
  const t = !c;
640
- o(t), t ? (Pe("all"), fe(!1), oe(null), await ue("all", 1)) : oe(null);
640
+ o(t), t ? (Pe("unread"), fe(!1), oe(null), await ue("unread", 1)) : oe(null);
641
641
  }, Se = async (t) => {
642
642
  Pe(t), fe(!1), await ue(t, 1);
643
643
  }, _ = (t) => {
@@ -735,7 +735,7 @@ const Ti = () => {
735
735
  ] }) : null;
736
736
  })() : /* @__PURE__ */ I(Ct, { children: [
737
737
  /* @__PURE__ */ I("div", { className: "filter-buttons", children: [
738
- /* @__PURE__ */ l("button", { className: `filter-button ${L === "all" ? "active" : ""}`, onClick: () => Se("all"), children: "Todas" }),
738
+ /* @__PURE__ */ l("button", { className: `filter-button ${L === "unread" ? "active" : ""}`, onClick: () => Se("unread"), children: "Sin leer" }),
739
739
  /* @__PURE__ */ l("button", { className: `filter-button ${L === "read" ? "active" : ""}`, onClick: () => Se("read"), children: "Leídas" })
740
740
  ] }),
741
741
  L === "read" && /* @__PURE__ */ l("div", { className: "header-actions", children: /* @__PURE__ */ l("span", { className: "delete-read-link", onClick: Y, children: "Eliminar leídas" }) })
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-ecosistema-unp",
3
3
  "author": "Ecosistema de Información - Unidad Nacional de Protección",
4
4
  "private": false,
5
- "version": "1.15.1",
5
+ "version": "1.15.3",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {