@select-org/post-components 2.1.1 → 2.1.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.
package/dist/index.js CHANGED
@@ -2574,7 +2574,7 @@ var PostFooter = ({
2574
2574
  }
2575
2575
  }) })
2576
2576
  ] }),
2577
- /* @__PURE__ */ jsx22("div", { className: "relative flex items-center ml-auto", children: postHref ? LinkComponent ? /* @__PURE__ */ jsxs13(
2577
+ postHref && /* @__PURE__ */ jsx22("div", { className: "relative flex items-center ml-auto", children: LinkComponent ? /* @__PURE__ */ jsxs13(
2578
2578
  LinkComponent,
2579
2579
  {
2580
2580
  href: postHref,
@@ -2599,10 +2599,7 @@ var PostFooter = ({
2599
2599
  commentBadge
2600
2600
  ]
2601
2601
  }
2602
- ) : /* @__PURE__ */ jsxs13("button", { className: commentButtonClass, "aria-label": commentAriaLabel, children: [
2603
- /* @__PURE__ */ jsx22(AppIcon, { name: "messageCircleMore", "aria-hidden": "true" }),
2604
- commentBadge
2605
- ] }) }),
2602
+ ) }),
2606
2603
  showFooterLink && /* @__PURE__ */ (() => {
2607
2604
  const footerLinkClass = "bg-action-primary/5 hover:bg-action-primary/10 transition-colors w-full text-center py-3 text-sm font-medium text-action-primary no-underline rounded-b-xl border-t border-action-primary/10";
2608
2605
  return /* @__PURE__ */ jsx22("section", { className: "flex justify-center -mx-5 -mb-2.5 mt-2.5", children: LinkComponent ? /* @__PURE__ */ jsx22(LinkComponent, { href: footerLinkHref, className: footerLinkClass, children: footerLinkLabel }) : /* @__PURE__ */ jsx22("a", { href: footerLinkHref, className: footerLinkClass, children: footerLinkLabel }) });
@@ -3037,7 +3034,7 @@ var PostCard = ({
3037
3034
  /* @__PURE__ */ jsx25("div", { className: cn(isPending && "opacity-50 pointer-events-none"), children: /* @__PURE__ */ jsx25(
3038
3035
  PostFooter_default,
3039
3036
  {
3040
- postHref,
3037
+ postHref: isPostDetail ? void 0 : postHref,
3041
3038
  commentCount,
3042
3039
  unreadCommentCount,
3043
3040
  isSnoozed,