@apolitical/component-library 4.6.0-4652.0 → 4.6.0-4652.2
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.js +29 -29
- package/index.mjs +5 -10
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -26340,26 +26340,21 @@ const BE = {
|
|
|
26340
26340
|
n(t, h).then((G) => {
|
|
26341
26341
|
f(() => ({ data: G, isLoading: !1 }));
|
|
26342
26342
|
}).catch(() => f((G) => ({ ...G, isLoading: !1 })));
|
|
26343
|
-
}, [e]), E = Re((G) => kE(G) ? (console.log("
|
|
26343
|
+
}, [e]), E = Re((G) => (console.log("data", G), kE(G) ? (console.log("data isMember", G), {
|
|
26344
26344
|
count: G.membersCount || 0,
|
|
26345
26345
|
isMember: !!G.role,
|
|
26346
26346
|
memberType: G.role || null
|
|
26347
|
-
}) : {
|
|
26347
|
+
}) : (console.log("data isNotMember", G), {
|
|
26348
26348
|
count: 0,
|
|
26349
26349
|
isMember: !1,
|
|
26350
26350
|
memberType: null
|
|
26351
|
-
}, []), F = Re(() => {
|
|
26351
|
+
})), []), F = Re(() => {
|
|
26352
26352
|
const { slug: G } = t;
|
|
26353
|
-
|
|
26354
|
-
communitySlug: G,
|
|
26355
|
-
buildMemberData: !r,
|
|
26356
|
-
isCommunityCard: !p,
|
|
26357
|
-
isCommunityCardString: typeof G != "string"
|
|
26358
|
-
}), !(!r || !p || typeof G != "string") && r(G).then(E).then(v).catch(() => f((D) => D));
|
|
26353
|
+
!r || !p || typeof G != "string" || r(G).then(E).then(v).catch(() => f((D) => D));
|
|
26359
26354
|
}, [r, t, p, E]);
|
|
26360
26355
|
if (he(() => {
|
|
26361
26356
|
w(), F();
|
|
26362
|
-
}, []), k || !x)
|
|
26357
|
+
}, []), console.log("Members", b), k || !x)
|
|
26363
26358
|
return /* @__PURE__ */ c.jsx(
|
|
26364
26359
|
Rt,
|
|
26365
26360
|
{
|