@apolitical/component-library 1.15.3 → 1.15.4-beta.1

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.
package/index.mjs CHANGED
@@ -2188,7 +2188,7 @@ const Rt = "communityDetails_", Ja = ({
2188
2188
  members: { number: r = 0, data: i = [] } = { number: 0, data: [] },
2189
2189
  functions: { invite: d, ...u }
2190
2190
  }) => {
2191
- const a = D(), l = 5, o = r || i.length, m = i.length ? i : Array(l).fill({});
2191
+ const a = D(), l = 5, o = r || i.length, m = i.length ? i : Array(l).fill({}), c = `/communities/${n}/members`;
2192
2192
  return /* @__PURE__ */ s.jsxs("div", { className: S("community-details", e), children: [
2193
2193
  /* @__PURE__ */ s.jsx(Ue, {}),
2194
2194
  /* @__PURE__ */ s.jsxs("div", { className: "member-details", children: [
@@ -2197,7 +2197,7 @@ const Rt = "communityDetails_", Ja = ({
2197
2197
  a.formatMessage({ id: `${Rt}members` }),
2198
2198
  /* @__PURE__ */ s.jsx("span", { className: "count", children: o })
2199
2199
  ] }),
2200
- /* @__PURE__ */ s.jsx("p", { className: "text-small", children: /* @__PURE__ */ s.jsx("a", { href: `/communities/${n}/members`, children: a.formatMessage({ id: `${Rt}viewAll` }) }) })
2200
+ c === window.location.pathname || /* @__PURE__ */ s.jsx("p", { className: "text-small", children: /* @__PURE__ */ s.jsx("a", { href: c, children: a.formatMessage({ id: `${Rt}viewAll` }) }) })
2201
2201
  ] }),
2202
2202
  /* @__PURE__ */ s.jsx(
2203
2203
  Un,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "1.15.3",
3
+ "version": "1.15.4-beta.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {